TORONTO KIDS COMPUTER CLUB | Friday 1700
151

# Friday 1700

## 14 JunFriday 17:00 Python Homework 22.06.10

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

## 09 JunFriday 17:00 Python Homework 22.06.03

Question: write a program to ask user about the date(year, month and day), then calculate 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 non leap years, in order to do easier calculation, you may create...

## 29 MayFriday 17:00 Python Homework 22.05.27

Question： Write a program to ask the user for five names. The program should store the names in a list, and print them all out at the end. It should look something like this: Sample input： Enter 5 names: Tony Paul Nick Michel Kevin Sample output： The names are Tony, Paul, Nick, Michel, Kevin Hint: You can use...

## 23 MayFriday 17:00 Python Homework 22.05.20

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

## 08 MayFriday 17:00 Python Homework 22.05.06

Question: Continue modify the war-robot program we made in the class, so that: if enemy’s hp is lower or equal to 0, use msgbox to display message ‘you win’, and the while program finish. it will be the enemy’s turn to strike you back. Enemy can...

## 05 MayFriday 17:00 Python Homework 22.04.29

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

## 24 AprFriday 17:00 Python Homework 22.04.22

Question 1: Use while loop (NOT for loop) to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this: Sample Input: Which multiplication table would you like? 7 How high do you want to go? 12 Sample Output: Here’s...

## 06 AprFriday 17:00 Python Homework 22.04.01

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

## 24 MarFriday 17:00 Python Homework 22.03.18

Question: Continue coding the program we did in the class, so the program will tell you whether you can pay in the zone: height color zone if<90 red 1 elif<105 blue 1, 2 elif <120 green 1,2,3 elif <135 yellow 1,2,3,4,5 elif <150 purple 4,5 else white 6 Please continue coding the following program: print('Welcome to the adventureland!') h = int(input('Height:')) if h < 90:    c = 'red' elif h <...

## 03 MarFriday 17:00 Python Homework 22.02.25

Question 1: Please using easygui to create the program we made in the class. The enter box will ask you password, if you get the right password, the msgbox will display ‘FBI Access granted’ Question 2: A store is having a sale. They’re giving 10 percent off purchases...