Welcome to the Treehouse Community
Looking to learn something new?
Brandon Galde12,741 Points
Can't use the del keyword to delete planned
I added line del(planned) to the end of the delete.py, resulting in the following contents:
current_count = 14 planned = 5 upcoming_release = 2 del(planned)
This works in testing, so I am confused as to why It is incorrect.
current_count = 14 planned = 5 upcoming_releases = 2 del(planned)
del(planned) is technically valid it is somewhat uncommon to use parenthesis when using keywords in Python. Since del is a keyword and not a function you should use a space to separate the value and the del keyword instead of parenthesis. Like this:
The challenge checker for this challenge is only setup with that coding style in mind.
You code looks fine.
Maybe remove the parentheses? I don't know; sometimes code challenges can be very picky. You gotta try every little tweak
I'm not 100% sure, but this might work:
It is more common in Python to write keywords without parentheses, so it's good to try this :)
I hope this post helps.
Good luck! ~Alex