ChatBot: We practiced defining variables and learned to use the input function to get user's input to create a ChatBot program.
Magic 8 Ball: We learned how to use the if-else statement to create a magic 8 ball with 4 possibilities: absolutely, most likely, possibly, and in your dreams. The possibility of each response is 25%.
If-Elif project: Our assignment was to pick two practices from the slides to work on for if-else practice. I picked the Age Category and Ticket Pricing.
-Age Category: Assign a category (child, teenager, adult, or senior) based on the user's age.
-Ticket Pricing: Assign a price for a movie ticket (people 12 and under and people 65 and over get a ten percent discount, normal prices are $100) based on the user's age.
This is the Age Category practice
This is the Ticket Pricing Practice
3 if-elif exercises: We had to do three of the if-elif exercises on the slides. I chose to do the Day of the Week exercise, the Weather Clothing Advice exercise, and the Number Guessing Game exercise.
-Day of the Week: Create a program to assign a day of the week based on a number 1-7.
-Weather Clothing Advice: Create a program that gives suggestions on what the user should wear based on what they say the weather is.
-Number Guessing Game: Create a program that generates a random number and the user has to guess it.
Day of the Week
Weather Clothing Advice
Number Guessing Game