TORONTO KIDS COMPUTER CLUB | Uncategorized
1
archive,paged,category,category-uncategorized,category-1,paged-71,category-paged-71,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Uncategorized

17 Dec PMCA Sunday 10:00 Practice -32.

Question: Please modify the fraction class we made in the class by adding a method called add(). The method will take 2 arguments top and bottom like: def add(self, top, bottom): so the fraction object can add another fraction top and bottom number, such as: a = Fraction(3, 5) a.add(1,...

Read More

11 Dec TCMS 18:30 Python Homework 12.06.

Question 1. Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this: Sample Input: Which multiplication table would you like? 5 Sample Output: Here’s your table: 5 x 1 = 5 5 x 2...

Read More

08 Dec PMCA Sunday 10:00 Practice -32.

Question 1: Create a dictionary variable personalInfo. The keys will be the information to be filled, such as: name, age, address, etc. The values is the personal detailed info, such as: Kevin, 19, 123 King St, etc. Question 2: From the dictionary created above, make two lists (make sure...

Read More