- This event has passed.
6 PM – Intro To Python – Gamas
March 30, 2022 @ 6:00 pm - 7:00 pm
Today We Do
- We reviewed homework from https://indo.ayclogic.com/intro-to-python/star-wars-problem/
Homework
- Create a new python file Mar30_FixSimplePythonError1.py. Copy and paste below broken python codes and fix all the problems,
-
age = input("How old are you: " genius = input("Are you a genius (y or n): ") if Age > 16 and genius == "y": print("You can join my super cool club.") else: print("You cannot join my club, because you are not cool enough.")
-
- If you fix all the problems, the code should run like the following
-
How old are you: 9 Are you a genius (y or n): y You cannot join my club, because you are not cool enough. How old are you: 17 Are you a genius (y or n): y You can join my super cool club. How old are you: 20 Are you a genius (y or n): n You cannot join my club, because you are not cool enough.
-
- Create a new python file Mar30_ExercisesBefore2ndQuizHomework.py and do exercises from number 1 to 5 from https://indo.ayclogic.com/list-inputs-if-and-else-loops-and-function/