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

Charles Beasley
PLUS
Charles Beasley
Courses Plus Student 217 Points

in the 2nd task of a coding challenge what could cause the first task to no longer be passing?

I cannot figure out why it keeps telling me first task , which was to 'del planned' is no longer passing

delete.py
current_count = 14
planned = 5
upcoming_releases = 2

total = (current_count + upcoming_release)

del planned

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi Charles! The most likely reason you will see a Task <insert number here> is no longer passing! message is because you've introduced a syntax error into your code. That is the case here. Check carefully the line where you assign a value to the variable total. The variable upcoming_release is not defined, but upcoming_releases is.

Also, note that the parentheses don't really hurt anything here, but they aren't needed and your code might be considered more readable without them.

Hope this helps! :sparkles: