Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

m=input('WOULD YOU LIKE TO START (y/n)\n')

import random
def covid():
print('Do you have fever')
o1=input('press [y/n]\n')
o1=o1.lower()
if o1=='y':
print('Do you have high temperature')
o2=input('press [y/n]\n')
o2=o2.lower()
if o2=='y':
print('Is the temperature persistent for more than 7 days')
o3=input('press [y/n]\n')
o3=o3.lower()
if o3=='y':
print('Do you have sore throat')
o4=input('press [y/n]\n')
o4=o4.lower()
if o4=='y':
print('Do you have cough')
o5=input('press [y/n]\n')
o5=o5.lower()
if o5=='y':
print('Do you have fatigue and muslue ache')
o6=input('press [y/n]\n')
o6=o6.lower()
if o6=='y':
print('Do you difficulty in breathing')
o7=input('press [y/n]\n')
o7=o7.lower()
if o7=='y':
print('you have covid 19 . go for rtpcr test and consult your
doctor ')
print('do yo wish to get an appointment for a doctor ?')
o8=input('press[y/n]\n')
o8=o8.lower()
if o8=='y':
print('Enter the options in each case')
print('Which language do you speak')
exp=input('1.english 2.hindi \n ')
exp=exp.lower()
onof=input('1.Online 2.Offline or 3.Home visit \n ')
onof=onof.lower()
r=random.randint(1,8)
if exp=='1':
if onof=='1':
print('You can request for an appoinment with Dr.Hazel
Placido at ',r,'PM Tomorrow')
print('Language:English Mode:Online')
if onof=='2':
print('You can request for an appoinment with Dr.
Patrick Dowds at ',r,'PM Tomorrow')
print('Language:English Mode:Offline')
if onof=='3':
print('You can request for an appoinment with Dr.
Salvatore Sibert at ',r,'PM Tomorrow')
print('Language:English Mode:Home Visit')
if exp=='2':
if onof=='1':
print('You can rquest for an appoinment with Dr.Vishal
Korpal at ',r,'PM Tomorrow')
print('Language:Hindi Mode:Online')
if onof=='2':
print('You can request for an appoinment with Dr.Ritu
Dora at ',r,'PM Tomorrow')
print('Language:Hindi Mode:Offline')
if onof=='3':
print('Yan can request for an apponinment with Dr.Ritu
Dora at ',r,'PM Tommorrow')
print('Language:Hindi Mode:Home Visit')
else:
print('BYE! have a nice day')
else:
print('You are suffering from high fever ')
else:
print('You are suffering from fever')
else:
print('You have common cold ')
else:
print('You have throat infection ')
else:
print('You have minor fever')
else:
print('You have minor fever ')
else:
print('You are fine ')
i=input('Would you like to start again(y/n) \n')
i=i.lower()
if i=='y':
covid()
else:
print('THE END!! THANK YOU')
if m=='y':
covid()
else:
print('THANKS YOU')

You might also like