TORONTO KIDS COMPUTER CLUB | Summer Camp 2021 Python 15:00
146

# Summer Camp 2021 Python 15:00

## 29 AugSummer Camp 2021 Python Homework 15:00 – week 07

Question 1: 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...

## 21 AugSummer Camp 2021 Python Homework 15:00 – week 06

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...

## 07 AugSummer Camp 2021 Python Homework 15:00 – week 05

Question 1: Write a program by using counting loop (for loop) 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...

## 31 JulSummer Camp 2021 Python Homework 15:00 – week 04

Topic: Use if to make choices Question 1: A store is having a sale. They’re giving 10 percent off purchases of \$10 or lower, and 20 percent off purchases of greater than \$10. Write a program that asks the purchase price and displays the discount (10% or...

## 25 JulSummer Camp 2021 Python Homework 15:00 – week 03

Question 1: Write a program to use easygui enterbox that asks for your name, then street, then city, then province, then postal code (all in easygui message boxes). The program should then display a mailing-style full address that looks something like this: Hint: Do not forget to import easygui in order to...

## 17 JulSummer Camp 2021 Python Homework 15:00 – week 02

You can do Question 1~ 3 in Python IDLE: Question 1. Use float() to create a number from a string like ‘12.34’. Make sure the result is really a number! Question 2. Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up...

## 08 JulSummer Camp 2021 Python Homework 15:00 – week 01

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 the new value using print. Question 3 Make another...