TORONTO KIDS COMPUTER CLUB | admin
1

## 18 JunAurora Saturday 18:00 Python Homework 20.06.13.

Question： Use TKinter to create 6 buttons as following picture: ...

## 18 JunAurora Tuesday 18:30 Python Homework 20.06.16.

Question: The factorial function (symbol: !) says to multiply all whole numbers from our chosen number down to 1. Examples: 4! = 4 × 3 × 2 × 1 = 24 7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 5040 1! = 1 Factorial is not defined for...

## 18 JunAurora Saturday 16:30 Python Homework 20.06.13.

Question: The factorial function (symbol: !) says to multiply all whole numbers from our chosen number down to 1. Examples: 4! = 4 × 3 × 2 × 1 = 24 7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 5040 1! = 1 Factorial is not defined...

## 18 JunAurora Saturday 14:30 Python Homework 20.06.13.

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

## 17 JunAurora Saturday 13:00 Python Practice 20.06.13.

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

## 17 JunMarkham Saturday 9:30 Python Homework 20.06.13.

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

## 17 JunPMCA Friday 19:00 Python Homework 20.06.12.

Solution 2 sample coding at the bottom of the page Question:When moving, ants form rows so that each ant except the first is behind another ant. It is not widely known what happens when two rows of ants moving in opposite directions run into each other...

## 12 JunPMCA Sunday 12:00 Java Homework 20.06.07.

Question: Given two values n1 and n2, write code to find the lowest common ancestor of number n1 and n2. Sample Input 1: 10 14 Sample Output 1: 12 Explanation: Both 10 and 14 the children of 12 Sample Input 2: 8 14 Sample Output 2: 8 Explanation: 8 is the closest node to both 8 and 14...

## 12 JunPMCA Saturday 18:30 Python Homework 20.06.06

Continue with the code in the previous class and change the code such that the circle moves in both x direction and y direction. ...

## 12 JunMarkham Saturday 14:00 Java Homework 20.06.06.

Question: When moving, ants form rows so that each ant except the first is behind another ant. It is not widely known what happens when two rows of ants moving in opposite directions run into each other in a passage too narrow for both rows to...