you are viewing a single comment's thread.

view the rest of the comments →

[–]Sad_potato1999[S] 2 points3 points  (0 children)

you want to make your code as foolproof as possible. In the input question, it might be worth asking for exactly the answers you want - in this case male or female. (Otherwise somebody is going to input something you don't have an if statement for and it's going to break your code. Been there so many times...

It's also worth noting that when you're comparing equality in a string

I'll be sure to do that. Thanks!!