TORONTO KIDS COMPUTER CLUB | Uncategorized
1
archive,paged,category,category-uncategorized,category-1,paged-72,category-paged-72,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Uncategorized

03 Dec Markham Saturday 9:30 Python Homework 11.30.

Question: Write a function to calculate the total value of some change—quarters, dimes, nickels, and pennies. The function should return the total value of the coins. Then write a program that calls the function. The output should look like this when it runs: Sample input: quarters: 3 dimes: 6 nickels: 7 pennies: 2 Sample output: total is...

Read More

27 Nov PMCA Sunday 16:00 Python Homework 11.24

Question: Using function or object method to write a program to return the number of times that the string “code” appears anywhere in the given string, except we’ll accept any letter for the ‘d’, so “cope” and “cooe” count. For example: ‘aaacodebbb’ will have 1 “code” ‘codexxcode’ will have 2 “code” ‘cozexxcope’...

Read More

27 Nov Markham Saturday 15:30 Python Homework 11.30

Question: Using function or object method to write a program to return the number of times that the string “code” appears anywhere in the given string, except we’ll accept any letter for the ‘d’, so “cope” and “cooe” count. For example: ‘aaacodebbb’ will have 1 “code” ‘codexxcode’ will have 2 “code” ‘cozexxcope’...

Read More

24 Nov PMCA Sunday 10:00 Practice -30.

Question: You are given a string . Suppose a character ‘a’ occurs consecutively n times in the string. Replace these consecutive occurrences of the character ‘a’ with (n, ‘a’) in the string. Input Format:  A single line of input consisting of the string . Output Format: A single line of...

Read More