TORONTO KIDS COMPUTER CLUB | admin
1

## 10 OctAurora Saturday 14:30 Python Practice 21.10.02.

Before being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. This kind of mobile is usually found hanging over cradles of small babies. The figure illustrates a simple mobile. It is just a wire, suspended by...

## 10 OctAurora Wednesday 18:30 Python Practice 21.10.06.

Question: A common problem in mathematics is to determine which quadrant a given point lies in. There are four quadrants, numbered from 1 to 4, as shown in the diagram below: For example, the point A, which is at coordinates (12, 5) lies in quadrant 1 since...

## 10 OctTuesday Python Homework 18:30 – 21.10.05

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

## 09 OctTuesday 17:00 Python Practice – 21.10.05.

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

## 09 OctAurora Monday 18:30 Python Homework 21.10.04.

Question： Continue to program the code we made in the class at the bottom of this page. Try to use for loop to create buttons from 1-9, so the tkinter window would display as below: Hint: You can use “for i in range(1, 10):” or “for i in ‘123456789’:”  to build these 9 buttons,...

## 30 SepAurora Wednesday 18:30 Python Practice 21.09.29.

Problem Description Suppose we have a number like 12. Let’s define shifting a number to mean adding a zero at the end. For example, if we shift that number once, we get the number 120. If we shift the number again we get the number 1200....

## 30 SepTuesday Python Homework 18:30 – 21.09.28

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

## 30 SepAurora Monday 18:30 Python Homework 21.09.27.

Question： As we mentioned in the class, please modify the code below to create simple calculator to: check if the num1 and num2 is valid entry(has to be a valid number) show “please select operation” when user did not press any operation button. ...

## 30 SepPMCA Sunday 10:00 Practice -09.26

Question: You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the sum of...

## 30 SepAurora Saturday 14:30 Python Practice 21.09.25.

Question: You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the sum of...