Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Emilio Andere
495 Pointspython basics help
1 Answer
Mad Marcus
Courses Plus Student 87 PointsActually you need to create a new variable named
Step 1: "sundeas"
Then you need split the strings using split() method.
example: sundaes = available.split(".")
here i have tried with dot(.) as my symbol but now u have choose the semicolon for your work.
Happy Learning... :)
Michael Cronk
8,970 PointsYes, that is also correct. You can do either one. The one i showed was where you put all the code on one line, it keeps the code looking clean and neat.
Michael Cronk
8,970 PointsMichael Cronk
8,970 PointsYou have to create a new variable named sundaes then give it the value of available.split() so it will look like this:
available = "banana split;hot fudge;cherry;malted;black and white" sundaes = available.split(';')