my code in python is giving me problems can you please help me with what is wrong para1 = "Currently in SA 27403 confirmed cases" "Currently in USA there are 1700000 confirmed cases" "Currently in China there are 89995 confirmed cases" print("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)):     print("Australia has 7155 confirmed casses") 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])

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

my code in python is giving me problems can you please help me with what is wrong

para1 = "Currently in SA 27403 confirmed cases"
"Currently in USA there are 1700000 confirmed cases"
"Currently in China there are 89995 confirmed cases"
print("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)):
    print("Australia has 7155 confirmed casses")


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])
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY