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

Stuack again on the second line

Completely lost on the second line
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = "available".split(available)

1 Answer

Chris Freeman
Chris Freeman
Treehouse Moderator 59,768 Points

The split method operates on a string or a variable pointing to a string. Your code has the string "available" instead of the variable available. The argument to split() should be the character you wish to use to divide the string. In this case, you'll want to use a semi-colon ;

Post back if you need more help. Good luck!!