- This event has passed.
6 PM – Introduction to Python – Nathaniel
June 1, 2021 @ 6:00 pm - 7:00 pm
- Today we:
- Did practice problems on if/elif/else statements
- Homework:
- Do the following problems below. These 3 questions can also be found in the google drive file named “IfElsePractice.py”
- 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” - 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 - 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!