American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6PM Python Level 1

January 26, 2019 @ 6:00 pm - 7:00 pm

  1. We went over Python Level 1 Quiz.
  2. Homeworks:
    1. Create a program (making_decisions_jan_26.py) that will do the following:
      1. Ask user “Give me your age? “
      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 40 then print “Dude!! You are old.”.
    2. Create a function that takes 2 numbers and adds them together and returns the result. Print the return result to the screen.
    3. Create a function that takes three parameters (param1, param2, param3). Combine them into one string and print the combined string inside the function.
    4. Fix below broken code
        1. firstName = 'John'
          lastName = 'Smith'
          print(firstName+' '+lastname)
        2. if number > 20
              print('Small number'
          else
              print('Big number')

Details

Date:
January 26, 2019
Time:
6:00 pm - 7:00 pm
Event Categories:
,