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

Author: admin

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" else carClass = "Minicompact" print(carClass) checktriangle toplevel import easygui choice = easygui.buttonbox("which hero do you like the most?", choices=['archer','pekka','witch']) if choice == 'archer': easygui.msgbox(image = 'archer.gif') if choice...

Read More

12 Nov Saturday 9:30 Python Homework 11.10.

Question : Create a list called “attributes” , it contains “HP”, “Attack”, “Defense”, “Special Attack”, “Special Defense”, “Speed” Modify the list in the question one, replace “Special Attack” and “Special Defense” with “Magic” and “Stamina” Add “Special skills” in the end of the list Delete “Speed” from...

Read More