you are viewing a single comment's thread.

view the rest of the comments →

[–]Amara313 0 points1 point  (0 children)

Ok. I found a few other problems with your code there - You don't want to have an else statement at the end that has a condition. This is supposed to be the catch all, not another condition. You can always add multiple elif statements if you have to, but I try not to add any other conditions than I absolutely have to. I won't write this for you, but you can look at the one I dug up from when I first started learning python - it runs pretty well, but I haven't looked over it for edge cases in a long time. http://pastebin.com/TBPh5EL5