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

Author: admin

14 Jun PMCA Sunday 10:00 Practice -06.13

Question: You are gathering readings of acidity level in a very long river in order to determine the health of the river. You have placed N sensors (2≤N≤2000000) in the river, and each sensor gives an integer reading R (1≤R≤1000). For the purposes of your research, you would like to...

Read More

11 Jun Tuesday 17:30 Python Homework 21.06.08.

Question: Make a class definition for a  BankAccount. It should have attributes for : – its name (a string), – account number (a string or integer), – and balance (a float). It should have methods to: – make deposits with displaying the balance, – and make withdrawals with displaying the balance. Hint: ...

Read More

08 Jun Aurora Saturday 16:30 Python Homework 21.06.05.

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

Read More