TORONTO KIDS COMPUTER CLUB | Tuesday Python 18:30
145

# Tuesday Python 18:30

## 26 JunTuesday Python Homework 18:30 – 22.06.21.

Question: Stuart the Minion was kidnapped!! he miss his friends minions very much and is very scare now. You can’t image how dark the room he was put into is, so poor :(. As a smart Minions, you want to get Stuart out of the monster’s labyrinth(maze). But...

## 19 JunTuesday Python Homework 18:30 – 22.06.14.

Question: Input a string. You must using a stack, reverse the string and print it. Sample Input 1: Enter String to reverse : Apple Sample Output  1 elppA Sample Input 2 Orange Sample Output 2 eganrO ...

## 12 JunTuesday Python Homework 18:30 – 22.06.07.

Question: The general problem of balancing and nesting different kinds of opening and closing symbols occurs frequently. Strings of symbols such as { { ( [ ] [ ] ) } ( ) } [ [ { { ( ( ) ) } } ] ] [ ] [ ]...

## 05 JunTuesday Python Homework 18:30 – 22.05.31.

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

## 29 MayTuesday Python Homework 18:30 – 22.05.24.

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

## 21 MayTuesday Python Homework 18:30 – 22.05.17.

Question: Create Card class so it can complete the following tasks: You can initial the card with value. you can compare two card object like c1>c2. you can use print(c1) shows the card value (Assume the smallest card value is 2, then followed by 3,4,5,6,7,8,9,10,J,Q,K,A) ...

## 13 MayTuesday Python Homework 18:30 – 22.05.10.

Question: We have known the __add__(self, other) to get called on add operation using+ operator, please finish the following math methods of Fraction class: __sub__(self, other) To get called on subtraction operation using – operator. __mul__(self, other) To get called on multiplication operation using * operator. ...

## 08 MayTuesday Python Homework 18:30 – 22.05.03.

Question: (We did this question before, but please use set we learned from class to solve the question this time.) Use input() to take 10 input from user, each item is separated by space. Then try to complete the following task: Create a list from the...

## 01 MayTuesday Python Homework 18:30 – 22.04.26.

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

## 24 AprTuesday Python Homework 18:30 – 22.04.19.

Question: Eric works in a door mat manufacturing company. One day, he designed a new door mat with the following specifications: ◦ Mat size must be A x B. (A is an odd natural number, and B is 3 times A.) ◦ The design should have ‘WELCOME’ written in...