![xrenay](/avatars/15064.jpg)
xrenay
06.11.2020 •
Computers and Technology
Write a multi-way if statement that compares the double variable pH with 7.0 and makes the following assignments to the bool variables neutral, base, and acid:
Solved
Show answers
More tips
- H Health and Medicine Contrast Shower: Benefits for the Body and Soul...
- S Society and Politics Skoptsy: Who They Are and How They Perform Castration?...
- H Health and Medicine How to Calculate Your Ideal Weight?...
- S Style and Beauty Discover the Art of Nail Design: How Do You Paint Your Nails?...
- P Philosophy How to Develop Extrasensory Abilities?...
- O Other Everything You Need to Know About Kudyabliks...
- C Computers and Internet The Twitter Phenomenon: What it is and How to Use it...
- C Computers and Internet How to Choose a Laptop: Expert Guide and Tips...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
Answers on questions: Computers and Technology
- M Mathematics PLS ANSWER I NEED HELP...
- E English Please I NEED HELP I Need This by Tomorrow 100 points...
- M Mathematics Look at the curved arrows you drew for 7 and 7. What relationship exists between these two arrows that would support your claim about the sum of 7 and -7?...
- C Chemistry What Wight of 60%pure H2SO4 is require to decompose 25gm of CaCo3...
Ответ:
try:
pH = float(input("Enter number between 0 to 14: "))
except ValueError:
print("input must be a number")
if pH < 7:
print("pH is Acidity")
elif pH == 7:
print("pH is neutral")
else:
print("pH is Base/alkaline")(
Explanation:
The try and except statement is used to check if the input is a number, if its not, the print statement is displayed. The nested if statement compares the pH input to know if it is an acid, base or neutral.
Ответ:
the answer here is D) 3
Explanation: