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 4
Join the discussion CommentAlready have an account? Log in
Here it doesn't matter, both give the same result. Method chaining just runs left to right, each method returning a new string.
Good, I was overthinking it.
In stage 3 the order does matter a bit: replace the underscores/dashes before you compare, of course.
casefold()is a strongerlower()for international text (e.g. German ß). For commands,lower()is fine.