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

Kostas Stankevicius
Kostas Stankevicius
7,169 Points

task 2

Checked the discussion and still cant figure it out whats wrong. Thanks for help !
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split("; ")
menu = "Our available flavors are: {}."

1 Answer

Ollie Webster
Ollie Webster
4,750 Points

Remove the space after the semicolon in split(). So it should be

sundaes = available.split(";")