Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
garrettdreyfus
· 12y ago · 0 comments
Updated it to your suggestion.
Comments
[–]
codezero
12y ago
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
OP
12y ago
Another good one, thanks.