-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEx05_HealthManagementSys.py
More file actions
64 lines (55 loc) · 1.88 KB
/
Copy pathEx05_HealthManagementSys.py
File metadata and controls
64 lines (55 loc) · 1.88 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
print("1 for Ashu \n2 for PapaJi \n3 for MummyJi")
choose = int(input())
if choose == 1:
print("1 for Exercise \n2 for Food")
choose2 = int(input())
if choose2 == 1:
print("Enter Exercise name to submit in the file")
exname = input()
with open("AshuEx.txt", "a")as f:
f = f.write(exname + "\n")
print("Success")
elif choose2 == 2:
print("Enter Food name to submit in the file")
foodname = input()
with open("AshuFo.txt", "a")as d:
d = d.write(foodname + "\n")
print("Success")
else:
print("Enter valid input like \n1 for Exercise \n2 for Food")
elif choose == 2:
print("1 for Exercise \n2 for Food")
choose2 = int(input())
if choose2 == 1:
print("Enter Exercise name to submit in the file")
exname = input()
with open("PapaJiEx.txt", "a")as f:
f = f.write(exname + "\n")
print("Success")
elif choose2 == 2:
print("Enter Food name to submit in the file")
foodname = input()
with open("PapaJiFo.txt", "a")as d:
d = d.write(foodname + "\n")
print("Success")
else:
print("Enter valid input like \n1 for Exercise \n2 for Food")
elif choose == 3:
print("1 for Exercise \n2 for Food")
choose2 = int(input())
if choose2 == 1:
print("Enter Exercise name to submit in the file")
exname = input()
with open("MummyJiEx.txt", "a")as f:
f = f.write(exname + "\n")
print("Success")
elif choose2 == 2:
print("Enter Food name to submit in the file")
foodname = input()
with open("MummyJiFo.txt", "a")as d:
d = d.write(foodname + "\n")
print("Success")
else:
print("Enter valid input like \n1 for Exercise \n2 for Food")
else:
print("Enter valid Input")