American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

6 PM – Introduction to Python – Nathaniel

June 1, 2021 @ 6:00 pm - 7:00 pm

  1. Today we:
    1. Did practice problems on if/elif/else statements
  2. Homework:
    1. Do the following problems below. These 3 questions can also be found in the google drive file named “IfElsePractice.py”
    2. Get the price from the user
      If price is less than $10 then print (f”{price} is cheap”)
      if price is less than 50 then print “{price} is not a bad price”
      anything else and print “{price} is way too expensive”
    3. Get the age from the user
      We now want to print the price of the ticket AT THE END
      if age is less than 5 then price is 0
      if age is less than 18 then price is 12
      if age is less than 30 then price is 30
      any other age and the price is 0
      AT THE END PRINT THE PRICE
    4. get the name from the user
      if the name is “PARKER” then print “Hi Parker”
      any other name then print “Who are you”

If you have any questions, feel free to email me at nathaniel@ayclogic.com!

Details

Date:
June 1, 2021
Time:
6:00 pm - 7:00 pm
Event Category:
Verified by MonsterInsights