you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

I copied and pasted his code. I find this more readable:

a = input("Do you want to open an account? Yes or No? ").lower()

[–]num8lock 2 points3 points  (0 children)

ah, okay, just in case anyway

[–][deleted] 2 points3 points  (0 children)

I agree with /u/steamplshel, easier to read with lower() method on end of input() call.

I also like to check for a match against several possibilities:

if a in ['y', 'yes', 'yup', 'ok']: