TORONTO KIDS COMPUTER CLUB | Uncategorized
1

# Uncategorized

## 07 MayPMCA Sunday 09:00 Python Homework 20.05.03.

Question 1: Write a program for a movie theater using while loop. It will keep asking your age and display the ticket price, until you enter “quit”. It is free if you are less than 3 years old, otherwise if your age is less than 16...

## 17 AprMarkham Friday 19:30 Python Homework 20.04.10.

Question: Write a function luckySum(a, b, c) to calculate sum of given 3 int values, a b c. The function will have a return value of their sum. However, if one of the values is 13 then it does not count towards the sum and values to its...

## 09 AprPMCA Sunday 09:00 Python Homework 20.04.05.

Question 1: Input a number using scanner and print the factorial of that number. E.g. Factorial of 5 is 1 * 2 * 3 * 4 * 5 =120 Question 2: Create a loop between 1 to 20. Print “fizz” if the number is divisible by 3 and “bizz”...

## 09 AprMarkham Friday 19:30 Python Homework 20.04.03.

Question: Write a function ftoc() to convert temperatures from Fahrenheit to Celsius. The formula for that is: Celsius = 5 / 9 * (Fahrenheit – 32). Class review: ...

## 01 AprMarkham Friday 19:30 Python Homework 20.03.27.

Question 1: Make a function that will allow you to print any name, address, street, city, state or province, zip or postal code, and country in the world. (Hint: It needs seven arguments. You can pass them as individual arguments or as a list.) Class review: ...

## 27 MarPMCA Sunday 09:00 Python Homework 20.03.22.

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

## 27 MarMarkham Friday 19:30 Python Homework 20.03.20.

Question: Make a list by taking 10 input from user. Now delete all repeated elements of the list. Sample Input: 1,2,3,2,1,3,12,12,32 Sample Output: 1,2,3,12,32 ...

## 20 MarPMCA Sunday 09:00 Python Homework 20.03.15.

Question: Create the following * pattern image base on your input Hint: Remember when we multiply a string by a number, the string is repeated the number times. >>> '*' * 10 '**********' Also you would need 2 for loops to solve the question Sample Input 1: 3 Sample Output 1: *** ** * * ** *** Sample Input 2: 5 Sample Output...

## 12 MarPMCA Sunday 18:00 Python Homework 20.03.08.

Question 1： Write a program that does the following: Generates a random secret number between 1 and 100 (including 1 and 100). Asks the user to guess the secret number, then tell them whether they guessed too low, too high, or exactly right. Keeps the game going until...

## 12 MarPMCA Sunday 09:00 Python Homework 20.03.08.

Question: Write a method that reads in three angles (in degrees). State the type of the triangle based on the conditions below: If all three angles are 60, output Equilateral. If the three angles add up to 180 and exactly two of the angles are the...