Question

In: Computer Science

What would be the Python “if -else” statement for this sentence. I and 6 months daughter...

What would be the Python “if -else” statement for this sentence.
I and 6 months daughter have been feeling sick since the whether changed. That got worried because of the COVID and we got tested yesterday and awaiting result. If my daughter’s result comes out negative, I am negative too. Otherwise we are both positive.

Solutions

Expert Solution

/*If you any query do comment in the comment section else like the solution*/

daughter = input("Enter covid report of daughter: ")
if daughter == '-':
    print("Both mother and daughter are covid negative")
else:
    print("Both mother and daughter are covid positive")


Related Solutions

How would I describe the development of handedness of a child at age 6 months to...
How would I describe the development of handedness of a child at age 6 months to when they enter kindergarten and the impact that culture and the child's environment have on the development of the child's handedness?
I would like to compare my current code with that of someone else to be sure...
I would like to compare my current code with that of someone else to be sure I did this assignment correctly. My main concern is with Problems 2 and 4. I sometimes struggle with testing the methods I have created. If you can, please answer all of the questions so that I may reference them if I am still lost on Problems 2 and 4. Each problem requires the one before it and so seeing the entire assignment as opposed...
What is a balance sheet? 2. What is an income statement? 3. What else, besides and...
What is a balance sheet? 2. What is an income statement? 3. What else, besides and income statement and balance sheet might a lender request from a business wishing to borrow money?
Using If-Else conditional statement write a Visual Basic Program to display: (i) “STOP” if the user...
Using If-Else conditional statement write a Visual Basic Program to display: (i) “STOP” if the user enters “R” (ii) “CAUTION” if the user enters “Y” (iii) “GO” if the user enters “G” (iv) “Invalid” if the user enters any other character
I expect to be retired for about 20 years (240 months). I expectto earn 6%...
I expect to be retired for about 20 years (240 months). I expect to earn 6% APR compounded monthly (after-tax) on my investments during my retirement years and I also expect inflation to average about 1.8% annually (compounded monthly). How much do I need to have saved to be able to spend the equivalent of $10,000 per month during each month of my retirement (note that you will be able to spend $10,000 during the first month of retirement and...
In what ways did the Cold War reshape global politics? Topic Sentence/Thesis Statement: Your first sentence...
In what ways did the Cold War reshape global politics? Topic Sentence/Thesis Statement: Your first sentence should directly answer the question in the assignment. It should be clear and direct, and provide an argument. If you write a sentence that is too general, then you will not be able to organize your answer and to provide details. First Criterion: In this section, you will provide and analyze evidence that supports the first part of your Thesis Statement. Remember to use...
I would like the following code in PYTHON please, there was a previous submission of this...
I would like the following code in PYTHON please, there was a previous submission of this question but I am trying to have the file save as a text file and not a json. Any help would be greatly appreciated. Create an application that does the following: The user will enter product codes and product numbers from the keyboard as strings. The product code must consist of four capital letters. The product number can only consist of numeric characters, but...
What are the problems with incarceration as the primary sentence? What alternatives would you recommend? What...
What are the problems with incarceration as the primary sentence? What alternatives would you recommend? What sentencing philosophy supports your favorite alternative? How are those alternatives supposed by a sentencing philosophy?
How would I create a nested dictionary given a csv file in Python? Say I want...
How would I create a nested dictionary given a csv file in Python? Say I want to make a dictionary that read {'country':{'China':'Fit', 'China':'Overweight', 'USA': 'Overweight', 'USA': 'Fit', 'England':'Fit'...}, 'category':{'Asian':'Fit', 'Caucasian': 'Overweight', 'Caucasian':'Overweight', 'Asian': 'Fit', 'Middle Eastern': 'Fit'...}} given a file that had country category Weight China Asian Fit China Caucasian Overweight USA Caucasian Overweight USA Asian Fit England Middle Eastern Fit... ... And so on in the file.
Hi, I would be grateful for some helot with this Python problem. Your task is to...
Hi, I would be grateful for some helot with this Python problem. Your task is to implement the simple elevator in Python using classes. The default strategy is the simple "start at the bottom, go to the top, then go to the bottom". Can you write a better strategy, one that is more efficient? Description / Specification Create three classes: Building, Elevator, and Customer. Equip the building with an elevator. Ask user to customize the number of floors and the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT