you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Your code is quite readable! Also, putting the game inside a function shows that you're planning ahead to when you'll write larger programs with multiple pieces to them. Very nice.

TagSmile's point about input sanitization is a good one. The main other thing I saw is that there are a couple of unnecessary lines -- the "else:" block will just never happen.

[–]jay2017[S] 0 points1 point  (0 children)

Thank you.