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
105,210 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".

Adam Tanner
Adam Tanner
681 Points

Was stuck on this for awhile until I read your answer, thanks!

Steven Parker
Steven Parker
105,210 Points

Adam Tanner — Glad to help. You can mark the question solved by choosing a "best answer".
And happy coding!