[ create a new paste ] login | about

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

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

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 $10.


Create a new paste based on this one


Comments: