[ create a new paste ] login | about

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

Python, pasted on Jul 22:
1
2
3
4
5
6
7
8
9
age = 5
if age < 4:
 price = 0
elif age < 18:
 price = 5
else:
 price = 10

print("Your cost of admission is $"+str(price)+".")


Output:
1
Your cost of admission is $5.


Create a new paste based on this one


Comments: