forked from sugunasimtestlab/pythonproject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (26 loc) · 1.01 KB
/
main.py
File metadata and controls
33 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from sports import Sports
def main():
my_sports = Sports("jerry", 50, 90)
while True:
user_input = input("Do you want to play the 3000 meter level? (yes/no) ")
if user_input.strip().lower() == 'yes':
my_sports.level()
else:
break
user_input = input("Do you want to play the 5000 meter level? (yes/no) ")
if user_input.strip().lower() == 'yes':
my_sports.district()
else:
break
user_input = input("Do you want to play the final match? (yes/no) ")
if user_input.strip().lower() == 'yes':
my_sports.state()
else:
break
user_input = input("Do you want to increase stamina again by taking a meal? (yes/no) ")
if user_input.strip().lower() == 'yes':
meal_type = input("What type of meal? (light/heavy) ")
my_sports.nutrition(meal_type)
my_sports.event_summary()
if __name__ == "__main__":
main()