- This event has passed.
5PM Python Level 1
April 27, 2019 @ 5:00 pm - 6:00 pm
- We went over Making Decisions page 31.
- We went over how to convert String to Integer and vice versa.
- We discussed all input from Shell is a String and never an Integer.
- We discussed “for loop”
- Homework:
- Create a program (April_27_give_me_your_age.py) that will do the following:
- Ask user “Give me your age? “ from Shell.
- If the user enters 0 print “You are a newborn baby”.
- If the user enters any number smaller than 4 then print “You are a toddler”.
- If the user enters any number smaller than 13 then print “You are a kid”.
- If the user enters any number smaller than 20 then print “You are a teenager”.
- If the user enters any number smaller than 40 then print “You are an adult”.
- If the user enters any number greater than or equal to 40 then print “Dude!! You are old.”.
- Create a program (April_27_give_me_your_age.py) that will do the following: