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

Luis Wenus
Luis Wenus
634 Points

What am I doing wrong

Can't find out what's wrong..

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

1 Answer

Alex Koumparos
Alex Koumparos
Python Web Development Techdegree Student 33,847 Points

Hi Luis,

You're attempting to format menu instead of concatenating a value to it. Take a look at the strings video to refresh your memory on the difference.