-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHealthManagementSystem.py
More file actions
63 lines (63 loc) · 1.9 KB
/
HealthManagementSystem.py
File metadata and controls
63 lines (63 loc) · 1.9 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
def getdate():
import datetime
return datetime.datetime.now()
print(getdate())
c = input("W - Write | R - Retrieve")
n = input("H - Harry | R - Rohan | HD - Hamad")
sl = input("D - Diet | E - Exercise")
if c == "W" and n == "H" and sl == "D":
o = open("HD.txt","w")
s = o.write(input("Kuch Likho Bhai"))
print("Kaam ho Gya Bhai at", getdate())
o.close()
elif c == "W" and n == "H" and sl == "E":
o = open("HE.txt","w")
s = o.write(input("Kuch Likho Bhai"))
print("Kaam ho Gya Bhai at", getdate())
o.close()
elif c == "W" and n == "R" and sl == "D":
o = open("RD.txt","w")
s = o.write(input("Kuch Likho Bhai"))
print("Kaam ho Gya Bhai at", getdate())
o.close()
elif c == "W" and n == "R" and sl == "E":
o = open("RE.txt","w")
s = o.write(input("Kuch Likho Bhai"))
print("Kaam ho Gya Bhai at", getdate())
o.close()
elif c == "W" and n == "HD" and sl == "D":
o = open("HDD.txt","w")
s = o.write(input("Kuch Likho Bhai"))
print("Kaam ho Gya Bhai at", getdate())
o.close()
elif c == "W" and n == "HD" and sl == "E":
o = open("HDE.txt","w")
s = o.write(input("Kuch Likho Bhai"))
print("Kaam ho Gya Bhai at", getdate())
o.close()
elif c == "R" and n == "H" and sl == "D":
o = open("HD.txt")
print(getdate(),o.read())
o.close()
elif c == "R" and n == "H" and sl == "E":
o = open("HE.txt")
print(getdate(),o.read())
o.close()
elif c == "R" and n == "R" and sl == "D":
o = open("RD.txt")
print(getdate(),o.read())
o.close()
elif c == "R" and n == "R" and sl == "E":
o = open("RE.txt")
print(getdate(),o.read())
o.close()
elif c == "R" and n == "HD" and sl == "D":
o = open("HDD.txt")
print(getdate(),o.read())
o.close()
elif c == "R" and n == "HD" and sl == "E":
o = open("HDE.txt")
print(getdate(),o.read())
o.close()
else:
print("Aaram se Beta")