On this page, you will find all the lessons that were done on Google Colab. After students learned and practiced Python concepts on Codersters, they would write code from scratch on Google Colab.
ChatBot: 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 8 Ball with four possible responses: absolutely, most likely, possibly, and in your dream. The probability of each answer is 25%.
Age category machine: students learned to use elif on there on to create a age category machine
Ticket machine: students learned to use elif on there on to create a ticket machine
Day of the Week: Write a program that takes a number representing the day of the week (1 for Monday, 2 for Tuesday, etc.) and prints the corresponding day.
Number Guessing Game: Write a program to randomly select a secret number between 1 and 20, and the player has to guess the number. The program provides feedback based on whether the guessed number is too low, too high, or correct.
Weather Clothing Advice: Create a program that suggests appropriate clothing based on the weather conditions. Ask the user for the weather (sunny, rainy, or snowy) and provide a clothing recommendation.