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

Author: admin

12 Jun Sunday 16:00 Python Homework 06.09

Question 1: A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20 percent off purchases of greater than $10. Write a program that asks the purchase price and displays the discount (10% or 20%) Sample Input: Your Purchases: 14 Sample Output: Congratulations! You got 20...

Read More

10 Jun PMCA Sunday 10:00 Practice -06.

Question: A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team. Sample input 1: Gender:...

Read More

10 Jun Monday Online Python Homework 06.06

Question You supervise a small parking lot which has N parking spaces. Yesterday, you recorded which parking spaces were occupied by cars and which were empty. Today, you recorded the same information. How many of the parking spaces were occupied both yesterday and today? Input Specification: The first line of input...

Read More

05 Jun PMCA Sunday 10:00 Practice -05.

Question: A store is having a sale. They’re giving $10 off when you purchase more than $100. Write a program that asks the purchase price and displays the final price. Sample Input 1: Your purchase: 90 Sample Output 1: You final price is $90 Sample Input 2: Your purchase: 120 Sample Output 2: your...

Read More

05 Jun Friday 19:00 Philip Python Homework 05.31.

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" >>> vegetables = vegetables.split(", ") >>> vegetables ['carrots', 'potatoes', 'onions', 'leeks', 'celery'] >>> fruits = ['avocados', 'bananas', 'oranges', 'grapes', 'mangoes'] >>>",...

Read More