TORONTO KIDS COMPUTER CLUB | Aurora Tuesday 18:30
129

# Aurora Tuesday 18:30

## 21 DecAurora Tuesday 18:30 Python Practice – 18 20.12.15.

Question 1: (please use function that return a value) Write a function to calculate the total value of some change—quarters, dimes and nickels. The function should return the total value of the coins. Then write a program that calls the function. The output should look like this...

## 12 DecAurora Tuesday 18:30 Python Practice – 17 20.12.08.

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

## 05 DecAurora Tuesday 18:30 Python Practice – 16 20.12.01.

Question: Write a Python program to create a list by concatenating (joining) a given list ['p', 'q'] which range goes from 1 to n. Sample Input: n: 5 Sample Output: ['p1', 'q1', 'p2', 'q2', 'p3', 'q3', 'p4', 'q4', 'p5', 'q5']...

## 27 NovAurora Tuesday 18:30 Python Practice – 15 20.11.24.

Question: Given the list of student marks: notes = [12, 04, 14, 11, 18, 13, 07, 10, 05, 09, 15, 08, 14, 16] Write a Python program that allows you to create another list that contains only the marks above the average. If you do not know how to...

## 20 NovAurora Tuesday 18:30 Python Practice – 14 20.11.17.

Question: The International Standard Book Number (ISBN) is a 13-digit code for identifying books. These numbers have a special property for detecting whether the number was written correctly. The 1-3-sum of a 13-digit number is calculated by multiplying the digits alternately by 1’s and 3’s (see example)...

## 11 NovAurora Tuesday 18:30 Python Practice – 13 20.11.10.

Question: 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 input Delete all repeated elements of the list. Sample Input 1: 1 2 3 2 1 3 98 98 67 Sample...

## 05 NovAurora Tuesday 18:30 Python Practice – 12 20.11.03.

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

## 28 OctAurora Tuesday 18:30 Python Practice – 12 20.10.27.

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

## 22 OctAurora Tuesday 18:30 Python Practice – 11 20.10.20.

Question 1： Using split and join function of the list to change string “green,red,yellow,blue,” into string: “green light* red light* yellow light* blue light* “ Hint: >>> vegetables = "carrots, potatoes, onions, leeks, celery" >>> # string.split(separator) will split the string by separator, for example: >>> vegetables = vegetables.split(", ") >>> print(vegetables) ['carrots', 'potatoes', 'onions',...

## 14 OctAurora Tuesday 18:30 Python Practice – 10 20.10.13.

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