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

BARBARA APPLEBY
BARBARA APPLEBY
131 Points

Is this a glitch?

In the first task, I am prompted to delete the "planned" variable, so I write the following line of code "del planned" Boom, all is well. Next task, create the variable "total" and have it equal to the sum of "current_count" and "upcoming_releases" I type the following line of code "total = current_count + upcoming_releases" and after checking my work, get the error message, "task one is no longer passing. I haven't changed any part of the previous line of code, so I can assume that it is a glitch of some sort.

delete.py
current_count = 14
planned = 5
upcoming_releases = 2
del planned
total = current_ count + upcoming_releases

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Barbara,

That is a very misleading error, as it never has anything to do with the previous task.

What this error means is that you have done something wrong in the current task (and this affects the code checker).

In this case, you have a space in your current_count variable name for the total sum line. Remove that space and you're all good to go.

:dizzy: