Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Shabnam_ticket
promot = "\nHello, How old are you dear person? " promot += "\nWhen you are finished please enter -1! " while True: age = input(promot) if age == -1: break age = int(age) if age <= 3: print("Ticket is free for you") elif 3 < age and age <=12: print("The ticket is 10$ for you") else: print("The ticket is 15$ for you") print("Thank you")
run
|
edit
|
history
|
help
0
Aufgabe 16
Gettinginput from users
single_digit
sdfgthyjuyhtgrf
e742c63f03ab602f2b38433ffc28b5145ba1332d
gameboy
ödev 123
Chain length calculator
Attempt to break cpu limit
coupon