TORONTO KIDS COMPUTER CLUB | Blog
1815
paged,page-template,page-template-blog-large-image,page-template-blog-large-image-php,page,page-id-1815,paged-332,page-paged-332,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Blog

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