« All Events
12 PM – Intro To Python – Gamas
October 18, 2025 @ 12:00 pm - 1:00 pm
Today We Did
- We went over if elif else and ==, <=, >, >=.
- We learn how to get input from shell.
Homework
- Create a new python file if_else_game_hw.py
- Create a program that will utilize “input” and “if else” statements. The program will allow user to enter a game name in the shell. if user enter “minecraft” then it will say “I like minecraft a lot.”. Otherwise, it will say “<game name> is not super good.”
- Look at example below
Enter name of a game: minecraft
I like minecraft a lot.
Enter name of a game: mario
mario is not super good
Enter name of a game: crash banditcoot
crash banditcoot is not super good
- Create a new python file if_elif_else_candy_price_hw.py
- Create a program that will utilize “input” and “if else” statements and “<=” operator. The program will allow user to enter price of a candy from shell. If user enter price that is bigger than 10, than print “<candy_price> is a very expensive candy.” Otherwise it will print “<candy_price> is an affordable candy.”. Look at the code that we did in the class today for example,
- Look at example below
Enter candy price: 5
$5 is an affordable candy.
Enter candy price: 1
$1 is an affordable candy.
Enter candy price: 12
$12 is a very expensive candy.
Enter candy price: 20
$20 is a very expensive candy.