American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

10 AM – Intro to Python – Darin (Riley Class)

August 10, 2023 @ 10:00 am - 12:00 pm

What We Did Today:

  1. Covered variables and data types, typecasting, combining strings
  2. Covered if and else statements along with and/or operators and ==, <, >, !=, <=, and >=
  3. Learned how to get input from shell
  4. Learned print formatting

Homework:

Get input from shell for 2 things, prompting the users:

  1. Name
  2. Age

Example: “Please enter your name: ”

Check if age is less than 2: check if name == bob, print “yes”, else print “no”

else if age is between 2 and 10 inclusive: check if name == henry, print “yes”, else print “no”

else if age is between 11 and 19 inclusive: check if name == riley, print “Hi Riley” (using variable)

else: print “goodbye”

NOTES:

  1. Make sure prompting for name is case insensitive, so you can put in RiLeY and get “Hi Riley” as your output. Keep in mind it’s Riley, not RiLeY.
  2. If you have any questions, email me at ddjapri@ayclogic.com.

Details

Date:
August 10, 2023
Time:
10:00 am - 12:00 pm
Event Categories:
,
Verified by MonsterInsights