TORONTO KIDS COMPUTER CLUB | admin
1

## 26 AugAurora Saturday 16:30 Python Homework 20.08.22.

Question: Modify the program we made in the class. if the boss is got shot by laser, use gotShot() function to make boss's HP decrease. If boss's hp is lower than 0 make the boss disappear from the screen ( you can use kill() method)...

## 26 AugAurora Saturday 14:30 Python Practice 20.08.22.

Question: Try to use the queue class to implement a general simulation of Hot Potato. Our program will input a list of names and a number, we call it “num,” to be used for counting. It will return the name of the last person remaining after...

## 25 AugPMCA Friday 19:00 Python Homework 20.08.21.

Question:Many advanced calculators have a fraction feature that will simplify fractions for you. You are to write a program that will accept for input a non-negative integer as a numerator and a positive integer as a denominator, and output the fraction in simplest form. That...

## 25 AugWednesday Friday 15:00 Python Practice 20.08.21.

Question: write a program to ask user about the date(year, month and day), then calculate the day of the year. Sample input： Year: 2016 Month: 6 Day: 23 Sample output： Day of the year: 175 Hint: You need consider leap years and non leap years, in order to do easier calculation, you may create...

## 24 AugTuesday Thursday 15:00 Python Practice 20.08.22.

Question 1：(please use function that return a value) Write a program to display information to a driver based on his/her speed according to the following table: km/h over the limit Fine 1 to 20 \$100 21 to 30 \$270 31 or above \$500 Sample Input 1: Enter the speed limit: 40 Enter the recorded speed of the...

## 20 AugTuesday Thursday 15:00 Python Practice 20.08.20.

Question 1: Make a function that will allow you to print any name, address, street, city, state or province, zip or postal code, and country in the world. (Hint: It needs seven arguments. You can pass them as individual arguments or as a list.) Question 2: Write a function to calculate the total value of some change—quarters,...

## 20 AugWednesday Friday 15:00 Python Practice 20.08.19.

Question： Create a list called “attributes” , it contains “HP”, “Attack”, “Defense”, “Special Attack”, “Special Defense”, “Speed” Modify the list above, replace “Special Attack” and “Special Defense” with “Magic” and “Stamina” Add “Special skills” in the end of the list Delete “Speed” from the list. ...

## 20 AugAurora Tuesday 18:30 Python Practice – 02 20.08.18.

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

## 20 AugTuesday Thursday 15:00 Python Practice 20.08.18.

Question： Write a program to ask the user for five names. The program should store the names in a list, and print them all out at the end. It should look something like this: Sample input： Enter 5 names: Tony Paul Nick Michel Kevin Sample output： The names are Tony, Paul, Nick, Michel, Kevin Hint: You can use...

## 19 AugPMCA Sunday 14:00 Python Homework 20.08.16.

Question 1 Mike, Cindy and Terry went to the orchard to pick apples. After a whole day of work, everyone picked a lot of apples. Please write a program ask how many apples each person has picked, then print the total apples all three of them...