TORONTO KIDS COMPUTER CLUB | admin
1

## 28 SepPMCA Saturday 18:30 Python Homework 22.09.24.

Question:(You could use stack to solve the problem) Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which multiplications are performed is arbitrary.  However, the number of elementary multiplications needed strongly depends...

## 28 SepSaturday 16:30 Python Practice – 22.09.24.

Question: write a program to ask user about the date(year, month and day), then pass these year month and day as arguments to a function calcDay that return 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...

## 28 SepSaturday 13:00 Python Practice – 22.09.24.

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

## 27 SepFriday Python Practice 20:30 – 22.09.23

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

## 27 SepFriday Python Practice 19:00 – 22.09.23

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

## 27 SepFriday 17:30 Python Practice – 22.09.23.

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

## 25 SepThursday 18:30 Python Practice 22.09.22.

Question: Continue modify the program we made in the class: create Energy class. A new energy crystal object  will be created when the enemy spaceship explode use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase ...

## 25 SepThursday 17:00 Python Practice – 22.09.21

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

## 25 SepAurora Wednesday 18:30 Python Practice 22.09.21.

Question:(You could use stack to solve the problem) Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which multiplications are performed is arbitrary.  However, the number of elementary multiplications needed strongly depends...