TORONTO KIDS COMPUTER CLUB | Summer Camp 2022 Python 13:00
147

# Summer Camp 2022 Python 13:00

## 12 AugSummer Camp 2022 Python Homework 13:00 – 08.11.

Question 1: We have a list of following: zoo = ['monkeys', 'tigers', 'pandas', 'penguins', 'giraffes', 'hippos', 'bears'] how to retrieve a slice of list zoo, so you can get the following result? ['monkeys', 'pandas', 'giraffes', 'bears'] Question 2: from the same list of zoo in the question 1, how to retrieve...

## 09 AugSummer Camp 2022 Python Homework 13:00 – 08.09.

Question: Continue modify the war-robot program we made in the class, so that: it will be the enemy’s turn to strike you back. Enemy can only use gun to fire and cause damage between 50-90. after enemy’s turn, if your hp is lower or equal to...

## 04 AugSummer Camp 2022 Python Homework 13:00 – 08.04.

Question: Use loop to print the following patterns: a. * ** *** **** b. * *** ***** *** * c. 1010101 10101 101 1...

## 04 AugSummer Camp 2022 Python Homework 13:00 – 08.02.

Question: 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 should use...

## 31 JulSummer Camp 2022 Python Homework 13:00 – 07.28.

Question 1: Use while loop (NOT for loop) to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this: Sample Input: Which multiplication table would you like? 7 How high do you want to go? 12 Sample Output: Here’s...

## 27 JulSummer Camp 2022 Python Homework 13:00 – 07.26.

Question 1: Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this: Sample Input: Which multiplication table would you like? 5 Sample Output: Here’s your table: 5 x 1 = 5 5 x 2...

## 23 JulSummer Camp 2022 Python Homework 13:00 – 07.21.

Question: 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!') h = int(input('Height:')) if h < 90:    c = 'red' elif h <...

## 21 JulSummer Camp 2022 Python Homework 13:00 – 07.19.

Question: A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team. Sample Input 1: Age:...

## 17 JulSummer Camp 2022 Python Homework 13:00 – 07.14.

Question 1: Please using easygui to create the program we made in the class. The enter box will ask you password, if you get the right password, the msgbox will display the following image (You need download the following images and save into the same folder...

## 13 JulSummer Camp 2022 Python Homework 13:00 – 07.12.

Question 1: Write a program to help you feed your friends at a party by doing some math about square pizzas. Your program need use input to ask the side length of the square pizza in cm. The area of the pizza should be computed using...