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

praveen r
praveen r
199 Points

it looks like task 1 is no longer passing

i just add a del function in the first task it went well but what's happening on the second task

delete.py
current_count = 14
planned = 5
upcoming_releases = 2
del planned
planned = "total"
total = upcoming_count+upcominr_release

1 Answer

Stuart Wright
Stuart Wright
41,119 Points

The exercise doesn't ask you to assign the string "total" to the variable planned, so I would remove that line. This is why it says task 1 is no longer passing, because it expects the variable planned to not exist after you deleted it in task 1, but it does now exist because you have created it again and assigned the string "total" to it. You should delete this line.

Your final line is almost the correct solution to the problem being asked. You just have your variable names wrong. It should be:

total = current_count + upcoming releases

Your 'upcoming_count' variable does not exist, and your 'upcominr_realease' one looks like a typo.

praveen r
praveen r
199 Points

thanks a lot