Join the discussion
Ask questions, share your code and help other Python learners. It's free.
Log in to comment, vote and follow discussions.
Continue with Google
or
Already have an account?
New to Space Python?
Check your inbox
We sent an activation link to . Open it in this browser and you'll come straight back here, logged in.
Nothing after a few minutes? Check your spam folder.
Comments 5
Join the discussion CommentAlready have an account? Log in
Names can contain letters, digits and underscores, but can't start with a digit. Use
second_stageorstage_2.Also avoid built-in names like
list,str,sum— Python allows them but you'll break the built-in for the rest of the file.Oh, I did name something
sumyesterday and thensum([1,2])stopped working. That's why!Classic!
del sumbrings the built-in back in the same session, by the way.Python convention is snake_case for variables:
fuel_level, notFuelLevelorfuellevel.And names are case-sensitive,
Speedandspeedare two different variables. Found that out the hard way.