my code is not owrking the way it should could you look at paragraph 1 especially para1 = """Currently in SA 27403 confirmed cases Currently in USA there are XXXXXXXXXXconfirmed cases Currently in...


my code is not owrking the way it should could you look at paragraph 1 especially


para1 = """Currently in SA 27403 confirmed cases
Currently in USA there are 1700000 confirmed cases
Currently in China there are 89995 confirmed cases
("Would you like to see the Confirmed casses for a random country?")
n = int(input("To select a random country, type a number from 0 to 9:"))
if(n in range(0,10)):
    (0) = Japan has 2300
    (1) = Nigeria has 2800
    (2)Russia has 3987
    (3)Canada has 8000"""


para2 = """
To prevent the spread of Covid-19:
Clean your hands often. Use soap and water, or an alcohol-based hand rub
Maintain a safe distance from anyone who is coughing or sneezing
Don't touch your eyes, nose or mouth
Cover your nose and mouth with a bent elbow or a tissue when you cough or sneeze
Stay home if you feel unwell
If you have a fever, cough and difficulty breathing, seek medical attention. Call in advance
Follow the directions of your local health autority
"""


para3 = """
Most common syptoms:
Fever
Dry cough
Tiredness


Less common symptoms:
Achess and pain
Sore throat
Diarrhoea
Conjunctivitis
Headache
Loss of taste and smell
a rash on skin, or discolouration of fingers or toes


Serious symptoms:
Difficulty breathing or shorteness of breath
Chest pain or pressure
Loss of speech or movement
"""


para4 = """
If you feel sick you should rest, drink plenty of fluid, and eat nutrtious food. Stay in seperate room
from other family members, and use a dedicated bathroom if possible. Clean and disinfect
frequently touched surfaces
"""


para5 = """
paragraph 5paragraph 5paragraph 5paragraph 5paragraph 5
paragraph 5paragraph 5paragraph 5
paragraph 5
"""


para6=""""""


paragraph = [para1,para2,para3,para4,para5,para6]


while True:
    print("Welcome to the Covid 19 support service. please select an option below:")
    mylist = ["1.Statistics", "2.Prevention", "3.Symptoms", "4.Treatment", "5.Report Case", "6.Exit"]


    print(*mylist, sep='\n')
    num = int(input("Enter Choice(1/2/3/4/5/6):"))
    if num == 6:
        break
    else:
        print(paragraph[num-1])

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here