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

Author: admin

05 Mar Saturday 09:30 Python Homework 03.02.

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

25 Feb Saturday 09:30 Python Homework 02.23.

Question 1:(please use function that return a value) Write a program to display information to a driver based on his/her speed according to the following table: km/h over the limit Fine 1 to 20 $100 21 to 30 $270 31 or above $500 Sample Input 1: Enter the speed limit: 40 Enter the recorded speed of the...

Read More

13 Feb Monday Online Python Homework 02.11.

Import practice: Question 1. Write a short program to generate a list of five random integer numbers from 1 to 20, and print them out. Question 2. Write a short program that prints out a random decimal number every 3 seconds for 30 seconds Bonus Question (Difficulty: Hard): Write a function to print your name...

Read More