TORONTO KIDS COMPUTER CLUB | python
15950
post-template-default,single,single-post,postid-15950,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

python

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 == ‘pekka’:
easygui.msgbox(image = ‘pekka.gif’)
if choice == ‘witch’:
easygui.msgbox(image = ‘witch.gif’)

easygui

No Comments

Sorry, the comment form is closed at this time.