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

Uncategorized

13 May PMCA Saturday 18:30 Python Homework 21.05.08.

Question: Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1. Sample Input 1: Apple Sample Output 1: 0 Explanation: “a” is the first character which is not repeating in the string apple and occur only once. Sample Input 2: lovelivesure Sample Output 2: 1 Explanation:...

Read More

11 May PMCA Sunday 10:00 Practice -05.09

Question 1: Numerous local and international recreational runners were eager to take part in this year’s Zagreb Marathon! It is an already traditional race 42125 meters long. A curious statistical info is that this year every single contestant managed to complete the race, except one. Since marathons...

Read More

05 May PMCA Sunday 10:00 Practice -05.02

Question 1: Use recursion to write a function has_digit  that consumes a string and produces True  if the string contains a digit (0 through 9) and False  otherwise. Hints: Make sure that you have a base case. Make sure to use the function on a shorter string. Before calling the function,...

Read More