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 trialLesedi Mahlangu
Courses Plus Student 300 Pointstask 1 is not passing
why does it say task 1 is not passing and how do I fix it? any help please
current_count = 14
planned = 5
upcoming_releases = 2
del planned
total = current_count + upcoming_release
1 Answer
silvercoder
11,113 PointsMy Solutions:
Part 1: I have a variable I don't need anymore. Can you add a new line to delete the planned variable? Use the del keyword, don't just delete the line.
current_count = 14
planned = 5
upcoming_releases = 2
del planned
Part 2:
Excellent! Now I need you to add a new variable named total. Then assign the sum of current_count and upcoming_releases to total. I'd like you to use the variables, but if you need to use the numbers, that's OK.
current_count = 14
planned = 5
upcoming_releases = 2
del planned
total = 14 + 2
You have a typo in your code:
total = current_count + upcoming_release
should be:
total = current_count + upcoming_releases
Hope this helps.