On this page, you will find all the lessons that were done on Google Colab. After I learned and practiced Python concepts on Codersters, I would write code from scratch on Google Colab.
ChatBot: I practiced defining variables and learned to use the input function to get user's input to create a ChatBot program.
Magic 8 Ball: I learned to use the if-else statement to create the Magic 8 Ball with four possible responses: DEFINITELY, MOST LIKELY, Unlikely, and HELL NA. The probability of each answer is 25%.
Age Program: We were asked to write a program that classifies a person's age into categories like child, teenager, adult, or senior.
Weekend: We were asked to 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 Game: We were asked to 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.
Rock Paper Scissors: We were asked to write a program so that the player enters their choice (rock, paper, or scissors), and the computer randomly selects its choice. The program then determines the winner based on the rock-paper-scissors rules.