Exercise: Clean up gibberish I
The sentence below has somehow gotten mixed up. Clean up the confusion by replacing character
&
with the correct character. Utilize the str.replace()
for this task.gibberish = '&L&PHANTS &AG&RLY &AT &NORMOUS AMOUNTS OF D&LICIO&S WAT&RM&LONS'
# use str.replace() to clean up string
text =
print(text)
Python
Setting up Python environment...
Output