TORONTO KIDS COMPUTER CLUB | Summer Camp 2021 Python 16:30
147

Summer Camp 2021 Python 16:30

29 AugSummer Camp 2021 Python Homework 16:30 – week 04

Question 1: Create a loop between 1 to 20. Print “fizz” if the number is divisible by 3 Print “bizz” if the number is divisible by 5 Print “fizzbizz” if a number is divisible by both 3 and 5. Otherwise, print the number itself. Hint: You could use...

21 AugSummer Camp 2021 Python Homework 16:30 – week 03

Question 1: Continue coding the program we did in the class, so the program will tell you whether you can pay in the zone: height color zone if<90 red 1 elif<105 blue 1, 2 elif <120 green 1,2,3 elif <135 yellow 1,2,3,4,5 elif <150 purple 4,5 else white 6 Please continue coding the following program: print('Welcome to the adventureland!') while True: # this line means forever height...

14 AugSummer Camp 2021 Python Homework 16:30 – week 02

Question 1. Write a program that asks for your first name, then asks for your last name, and then prints a message with your first and last names in it. Sample Input: What is your first name? Kevin What is your Last name? Zhu Sample Output: (it means if user enters the above answer...

07 AugSummer Camp 2021 Python Homework 16:30 – week 01

You could do the following homework using IDLE  Question 1 Make a variable and assign a number to it (any number you like). Then display your variable using print. Question 2 Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display...