[ create a new paste ] login | about

Link: http://codepad.org/ngi69B7R    [ raw code | output | fork ]

Python, pasted on Jul 22:
1
2
3
4
5
6
7
8
age = 12

if age < 4:
 print("Admission for anyone under age 4 is free")
elif age < 18:
 print("Admission for anyone under age 18 is $5")
else:
 print("Admission for anyone over age 18 is $10")


Output:
1
Admission for anyone under age 18 is $5


Create a new paste based on this one


Comments: