0% found this document useful (0 votes)
10 views3 pages

Mlcode 230114 195212

The document contains a Python program that simulates a basic diagnostic tool for COVID-19 symptoms. It asks the user a series of yes or no questions to check for symptoms like fever, cough, breathing difficulties etc. Based on the answers, it provides feedback on possible conditions. If COVID-19 seems likely, it offers to book an online/offline appointment with doctors of the user's language preference.

Uploaded by

Somo Pattnaik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Mlcode 230114 195212

The document contains a Python program that simulates a basic diagnostic tool for COVID-19 symptoms. It asks the user a series of yes or no questions to check for symptoms like fever, cough, breathing difficulties etc. Based on the answers, it provides feedback on possible conditions. If COVID-19 seems likely, it offers to book an online/offline appointment with doctors of the user's language preference.

Uploaded by

Somo Pattnaik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy