- This event has passed.
4 PM – Introduction to Python – Nathaniel
February 20, 2021 @ 4:00 pm - 5:00 pm
- Today we went over:
- Tell me your age homework
- if/elif/else practice
- Homework:
-
1.) 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" 2.) 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 3.) 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, please feel free to email me at nathaniel@ayclogic.com!