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

usman ibraheem
usman ibraheem
198 Points

i'm stuck

what i'm i doin wrong?

available = "banana split;hot fudge;cherry;malted;black and white" sundaes = available.split(";") menu = "Our available flavors are: {} .".format(sundaes) display_menu = ", ".join(sundaes) menu = menu.list(display_menu)

banana.py
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "Our available flavors are: {} .".format(sundaes)
display_menu = ", ".join(sundaes)
menu = menu.list(display_menu)

1 Answer

Steven Parker
Steven Parker
94,464 Points

You're close, but you need to create "display_menu" first, and then use it (instead of sundaes) as the argument to "format" when you create the final string to assign to "menu".