calthoff / tstp

This is an old repository for the exercises in "The Self-Taught Programmer." Please see /selftaught.
166 stars 193 forks source link

Can multiple if-statements work too? #16

Open alisha58 opened 6 years ago

alisha58 commented 6 years ago

I'm sorry, I don't know how else to reach out to you about this question, and I figured this may be the best way. For challenge 3, why is it possible to do multiple if-statements? I've tried to run it, and it does not work (there is no output, just a blank), and I was wondering why. Can you explain?

Note: if I assign a value less than 10 for the variable x (i.e. I make the first if-statement true), an output shows. However, any value that makes the other if-statements true (i.e. a value between 10-25 that makes the 2nd if-statement true, or a value greater than 25 that makes the 3rd if-statement true), no output shows. Again, can you explain?

calthoff commented 6 years ago

Hello! Please email me at cory@theselftaughtprogrammer.io and send me a Git gist or a video of what you are trying to do.