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

Richard Poirier
PLUS
Richard Poirier
Courses Plus Student 2,930 Points

This shouldn't be hard...but I cant make figure this code challenge out

I am doing the first code challenge for python and all it wants me to do is make a variable called "total" and make it add current_count and upcoming_releases. I have tried so many different ways to make this work but it never does. Can someone tell me how you are supposed to do it...the hint is totally useless. I know this is going to be obvious...I just want to know what the code should look like so I can move on...any help is appreciated =D

delete.py
current_count = 14
planned = 5
upcoming_releases = 2
del planned
t = "total"
total = 'current_count + upcoming_releases'

1 Answer

You don't need your t variable, and when you use variables you don't put them inside quotes:

del planned
total = current_count + upcoming_releases

Happy coding!