TORONTO KIDS COMPUTER CLUB | admin
1

## 01 OctTuesday 17:00 Python Practice – 03 20.09.29.

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

## 01 OctMonday 20:00 Python Practice 20.09.28.

Question： Create an FluidConversion object to convert any number of fluid units to the equivalent number of gallons, quarts, pints, and gills. (There are 128 fluid ounces in a gallon. There are 32 fluid ounces in a quart. There are 16 fluid ounces in a pint. There are...

## 01 OctAurora Monday 18:30 Python Homework 20.09.28.

Question: Anna and Jack are playing a game. Each player starts with 100 points. The game uses standard six-sided dice and is played in rounds. During one round, each player rolls one die. The player with the lower roll loses the number of points shown on the higher...

## 01 OctAurora Saturday 16:30 Python Homework 20.09.26.

Question: Create Card class so it can complete the following tasks: Card() – You can initial the card with random value (Assume the smallest card value is ‘2’, then followed by ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ’10’, ‘J’, ‘Q’, ‘K’, ‘A’) and according rank...

## 01 OctAurora Saturday 13:00 Python Practice 09.26.

Question: Use input() to take 10 input from user, each item is separated by space. Then try to complete the following task: Create a list from the input Delete all repeated elements of the list. Sample Input 1: 1 2 3 2 1 3 98 98 67 Sample...

## 01 OctAurora Saturday 14:30 Python Practice 20.09.26.

Question:Alice took a clean sheet of paper and drew h horizontal and v vertical lines onto the paper. The horizontal lines have y-coordinates y1,…,yh, and the vertical lines have x-coordinates x1,…,xv. Given these coordinates, count the number of squares that appeared on the paper. (The whole boundary of the square has to be drawn. The inside...

## 29 SepPMCA Friday 19:00 Python Homework 20.09.25.

Question:In order to increase your performance on the ABC (Another Buying Contest), you decide that you need a new computer. When determining which computer to buy, you narrow your search categories to: RAM (in gigabytes), denoted as R; CPU speed (in megahertz), denoted as S; disk drive space...

## 29 SepFriday 17:00 Python Practice 20.09.25.

Question: Make changes of the program we made in the class, so the enemy spaceship could complete the following tasks: the enemy can bounce back when it reaches left or right edge.(You could change the direction of the enemy by changing the first item in...

## 24 SepAurora Wednesday 18:30 Python Practice – 05 20.09.23.

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 20%) and the final price. Sample Input...

## 24 SepTuesday 17:00 Python Practice – 02 20.09.22.

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