HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by garrettdreyfus | Hacker News Reader
Parent
Full thread
garrettdreyfus
·
Updated it to your suggestion.
View on HN
codezero
·
One more suggestion, make sure to test against lower case:
reply = str(raw_input(question+' (y/n): ')).lower()
You could even add .strip() on there if you want to make sure it doesn't have leading spaces.
garrettdreyfus
·
Another good one, thanks.
Reply on news.ycombinator.com