Skip to content

Commit 17606d3

Browse files
Create age_calculator.py
1 parent d90570c commit 17606d3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

age_calculator.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
year =int(input("Please enter the year you were born:" ))
2+
age = 2019 - year
3+
4+
print("you must be“, age, "years old")
5+
6+
if age < 50:
7+
print("you are not yet a senior citizen")
8+
9+
elif age == 50:
10+
print("welcome to deny's, may I take your order please")
11+
12+
else:
13+
print("you are a senior citizen")

0 commit comments

Comments
 (0)