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

Python Python Basics (2015) Python Data Types Del

Philipp Eble
Philipp Eble
258 Points

Although 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

delete.py
current_count = 14
planned = 5
upcoming_releases = 2
del planned
total = sum(current_count + upcoming_releases)

2 Answers

Steven Parker
Steven Parker
231,275 Points

A 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
Philipp Eble
258 Points

Thanks a lot! I tried and continued :)