Tell Me Your Age

  1. Create a program (<Date>_tell_me_your_age.py) that will do the following:
    1. Get input from shell “Tell me your age? “ and save whatever user enter into variable “age”. Remember all input from the python shell is a String. If you want to treat it as a number, you have to convert it to Integer using
      1. age = int(age)
    2. If the user enters 0 print only “You are a newborn baby”.
    3. If the user enters any number smaller than 4 then print only “You are a toddler”.
    4. If the user enters any number smaller than 13 then print only “You are a kid”.
    5. If the user enters any number smaller than 20 then print only “You are a teenager”.
    6. If the user enters any number smaller than 40 then print only “You are an adult”.
    7. If the user enters any number greater than or equal to 40 then print only “Dude!! You are old.”.

Example

  1. Tell me your age? 0
    
    You are a newborn baby
  2. Tell me your age? 14
    
    You are a teenager.
  3. Tell me your age? 100
    
    Dude!! You are old.

FOREVER LOOP

    1. After you are done with number 1, put the entire program inside a forever loop.
    2. As a bonus point, put a code inside the forever loop that if they enter “exit”, break from the loop.