Chat Bot: students practiced defining variables and learned to use the input function to get user's input to create a ChatBot program
Magic 8 ball: students learned to use the if-else statement to create the magic 9 ball with 4 possible responses: absolutely, most likely, possibly, and in your dreams. The prabability of each answer is 25%.
Elif coding: During class, we chose two practices to do. I chose to Categorize people's age by child, teenager, adult, and senior.
The code below is the second practice that I chose to do, which is to create a program that determines the price of a movie ticket based on the user's age, and give children and seniors a 10 percent discount.
I did this code at home when I was sick. This code is a guessing game where the random module generates a random number and tells you if your guess is too high, too low, or correct.
This code inputs a number and prints the corresponding day of the week
This code generates a random number and intakes "rock", "paper", and "scissor" where 1 = rock, 2 = paper, and 3 = scissor. The code then processes if the user wins or the computer wins.