Untitled

 avatar
unknown
plain_text
16 days ago
2.8 kB
3
Indexable
print("THIS WILL DETERMINE WHETHER OR NOT YOU ARE CONTAGIOUS: ")

my_list=[]
my_list.append(input("Were your strep throat test results positive or negative? "))
my_list.append(int(input("On a scale of 1-10, how bad is the pain? ")))
days_sick=int(input("How many days have you been sick?"))


if my_list[0]=="positive":
    if my_list[1]>=int(6):
        print("Positive and contagious")
        print("Make sure to quarantine for the next 48 hours.")
    else:
        print("Positive but not contagious")
        print("You do not have to quarantine.")
else:
    print("Negative (not contagious)")
    print("You do not have to quarantine.")
print(" ")
print("PRESCRIPTION:")


if my_list[0]=="positive":
    if my_list[1]>6:
        dose=float(250.0)
        for i in range(my_list[1]):
            dosel=float(4.5*i)
            dose=dosel+dose
        print("Amoxicillin dose: " + str(dose) + "mg")   
        print("Take one tablet twice a day, every 12 hours.")
        print("Make sure to eat solid food before eating this.")
        dosei=float(300.0)+5*(my_list[1])
        print(" ")
        print("Ibuprofen dose: " + str(dosei) + "mg")
        print("Take one tablet every 8 hours.")
        print("Make sure to eat solid food before eating this.")
    else:
        print("Amoxicillin dose: 200mg")
        print("Take one tablet twice a day, every 12 hours.")
        print("Make sure to eat solid food before eating this.")
        print(" ")
        print("Ibuprofen dose: 250mg")
        print("Take one tablet every 8 hours.")
        print("Make sure to eat solid food before eating this.")

  
if my_list[0]=="negative":
    if my_list[1]>6:
        dosei=float(300.0)+5*(my_list[1])
        print("Ibuprofen dose: " + str(dosei)+ "mg")
        print("Take one tablet every 8 hours.")
        print("Make sure to eat solid food before eating this.")
    else:
        print("Ibuprofen dose: 250mg")
        print("Take one tablet every 8 hours.")
        print("Make sure to eat solid food before eating this.")        

def recovery_time(days_sick):
    days=14-days_sick
    if my_list[0]=="positive":
        if days>=0:
            print("We expect that you get better in " + str(days) + " days.")
        else:
            print("We suggest that you visit your provider as strep throat should only be symptomatic for 14 days.")
    else:
        if days>=0:
            print("We expect that you get better in " + str(days) + " days.")
        else:
            print("We suggest that you visit your provider as sickness for a period greater than 14 days could indicate a larger issue.")
print(" ")
print("EXPECTED RECOVERY TIME:")
recovery_time(days_sick)
Editor is loading...
Leave a Comment