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 trialPhilipp Eble
258 PointsAlthough I make no changes to task 1 and get the first part correct, once I try do task 2 it says I made a mistake.
I cannot continue like this
current_count = 14
planned = 5
upcoming_releases = 2
del planned
total = sum(current_count + upcoming_releases)
2 Answers
Steven Parker
231,236 PointsA syntax error invalidates the entire program, and so the re-check of previous tasks will fail.
The error here is that the "sum" function requires an iterable, but you are passing it a scalar value.
Hint: you probably don't really need to use that function here.
Philipp Eble
258 PointsThanks a lot! I tried and continued :)