American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

5PM Python Level 1

April 27, 2019 @ 5:00 pm - 6:00 pm

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

Details

Date:
April 27, 2019
Time:
5:00 pm - 6:00 pm
Event Categories:
,