Python Python Basics (2015) Python Data Types Use .split() and .join()

Trey Grider
Trey Grider
265 Points

Help! .split() and .join() Task 3

Any help would be appreciated!
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(';')
menu = "Our available flavors are: {}."

1 Answer

Hi Trey,

The string, "available" is split into the list "sundaes". You then need to iterate through the list for you menu, completing your menu string with "format".


for dessert in sundaes: print("{}".format(dessert))