TORONTO KIDS COMPUTER CLUB | admin
1
archive,paged,author,author-admin,author-1,paged-183,author-paged-183,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Author: admin

09 Jan PMCA Saturday 18:30 Python Homework 20.01.04.

Question 1: We have a list of following: zoo = [‘monkeys’, ‘tigers’, ‘pandas’, ‘penguins’, ‘giraffes’, ‘hippos’, ‘bears’] how to retrieve a slice of list zoo, so you can get the following result? [‘monkeys’, ‘pandas’, ‘giraffes’, ‘bears’] Question 2: from the same list of zoo in the question 1, how to retrieve a slice...

Read More

03 Jan TCMS 18:30 Python Homework 20.01.02.

Question 1. Write a program to ask how many people. If there are more than 8 people, print message "No available seats", otherwise print message "Seats are available" Sample input 1: How many people: 10 Sample output 1: No available seats Sample input 2: How many people: 6 Sample output 2: Seats are available Question...

Read More

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

13 Dec Christmas Contest

Question 1: Santa Claus is playing card game with his reindeer to decide which route he's going to take to send out the gifts. He is going to play six games. There are no ties. The gift route will be decided based on the results of...

Read More

11 Dec PMCA Sunday 10:00 Java Homework 12.08.

Question: Using function or object method to write a program to return the number of times that the string “code” appears anywhere in the given string, except we’ll accept any letter for the ‘d’, so “cope” and “cooe” count. For example: ‘aaacodebbb’ will have 1 “code” ‘codexxcode’ will have 2 “code” ‘cozexxcope’...

Read More