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-349,page-paged-349,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Blog

20 Nov Sunday 12:00 Python Homework 11.18.

  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. Hint: You need import module time. time.sleep(5) means wait 5 seconds Bonus...

Read More

19 Nov Saturday 12:00 Python Homework 11.17.

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. Hint: You need import module time. time.sleep(5) means wait 5...

Read More

17 Nov python

fourletters volume = int(input())if volume >= 120:carClass = "Large"elif volume < 120:carClass = "Mid-Size"elif volume < 110:carClass = "Compact"elif volume < 100:carClass = "Subcompact"elsecarClass = "Minicompact" print(carClass) checktriangle toplevel import easyguichoice = easygui.buttonbox("which hero do you like the most?",choices=['archer','pekka','witch'])if choice == 'archer':easygui.msgbox(image = 'archer.gif')if...

Read More