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

cant get past task 3 on splitting and join

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

where did i go wrong?

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

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Staff

Hi there! You're super close. But in your last line, take a good look at what you're formatting that string with. The value now stored in menu is very literally "Our available flavors are: display_menu." You meant to format the string with the value in the variable display_menu, but because you put it in quotes, it's now formatting the string with the string literal "display_menu".

Hope this helps! :sparkles: