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

i dont know why it not working

i looked in the community and i copied it word for word.

delete.py
current_count = 14
planned = 5
upcoming_releases = 2
del planned
total= 3
total + current_count + upcoming_realeases

2 Answers

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hello Jude.

Why did you set the total variable to the value 3? The code challenge did not ask for that. It should instead be set to be the sum of current_count and upcoming_releases

So the way you started the "total line" is fine:

total = 

At this point you have to make sure this total is the sum of current_count and upcoming_releases.

I hope I made it clear, if you need more help, please let us know ;)

Vitto

Cheo R
Cheo R
37,150 Points
total= 3

Add spaces. I've seen where people have problems only because the parser wasn't catching things.

upcoming_releases = 2
total + current_count + upcoming_realeases

You misspelled upcoming_releases.

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hi Cheo.

I have changed your comment into an answer.

Those 2 things that you noticed were good hints, but I believe still not enough to have the code pass the challenge

;)