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:

Answers

Answer 1

Answer:

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.


Related Questions

A computer has _____IP address(es).

a) many
b) one

Answers

Answer:

one................

Answer:

B) one

Explanation:

How do I do these? I dont understand.

Answers

I don’t understand either, I would suggest contacting your teacher or maybe searching up videos or tutorials on how to solve such a problem.

Using range(1,101), make two list, one containing all even numbers and other containing all odd numbers. How can I do this on Python

Answers

Answer:

even = []

odd = []

for i in range(1,101):

if i % 2 == 0:

even.append(i)

else:

odd.append(i)

Using range(1,101), the list of even and odd number can be done in python as follows;

odd_numbers = []

even_numbers = []

for i in range(1, 101):

  if i%2 == 0:

     even_numbers.append(i)

  else:

     odd_numbers.append(i)

print(even_numbers)

print(odd_numbers)

The variable odd_numbers is initialise with an empty list

The variable even_numbers is initialise with an empty list.

Then we loop through the range 1 to 101 as required.

If the looped numbers is divided by 2 without a remainder then the number is appended to the empty list even_numbers.

Else if it has a remainder, the looped number are appended to the empty list, odd_numbers.

Then we print the even_numbers and odd_numbers.

learn more about python here; https://brainly.com/question/14157737?referrer=searchResults

Which of the following would be appropriate to create using the CMYK color model?

Select all that apply.

a printed takeout menu a printed takeout menu , ,

a photography blog a photography blog , ,

a tri-fold brochure a tri-fold brochure , ,

a mobile app logo

Answers

Answer:

B, and C

Explanation:

they look like the only two answers that make sence

True or false: Simultaneous multithreading (SMT) uses threads to improve resource utilization of a dynamically scheduled, out-of-order processor.

Answers

Answer:

True

Explanation:

Simultaneous multithreading or otherwise called, SMT that is a technique that us used for improving the total and overall efficiency of superscalar CPUs with hardware multithreading. Simultaneous Multithreading allows different types of independent threads, ability to execute and then eventually take optimum and much better use of the resources that is provided by modern processor architectures. Multithreading can not only allow multiple threads to be executed simultaneously in a single CPU core, it also allows multiple tasks some of which are different page tables, different I/O permissions, and others to be executed

PLzzzzzz help me!! I will mark brainiest to the one who answers it right!!
Answer it quickly!!

Write a pseudo code for an algorithm to center a title in a word processor.

Answers

Answer: abstract algebra

Explanation: start with the algorithm you are using, and phrase it using words that are easily transcribed into computer instructions.

Indent when you are enclosing instructions within a loop or a conditional clause. ...

Avoid words associated with a certain kind of computer language.

Answer:

(Answers may vary.)

Open the document using word processing software.

In the document, select the title that you want to center. The selected word is highlighted.

On the Menu bar, select the Format tab.

In the Format menu, select Paragraph.

The Paragraph dialog box opens with two sub tabs: Indents and Spacing, and Page and Line Breaks. The first tab is selected by default.

Adjust the indentation for the left and right side. Ensure that both sides are equal.

Preview the change at the bottom of the dialog box.

Click OK if correct, otherwise click Cancel to undo changes.

If you clicked OK, the title is now centered.

If you clicked Cancel, the title will remain as it is.

Explanation:

I took the unit activity

Acrostics, acronyms, and rhymes are a few examples of __________. A. a visual strategy B. the misinformation effect C. memory reconstruction D. a mnemonic device Please select the best answer from the choices provided A B C D

Answers

Answer:

The answer is D) A mnemonic device

Answer:

D

Explanation:

I hope this helps! Sorry if it is wrong ;-;

The 1950s brought the television and interest in using television as a teaching device. In 1952, the _____________________________ decided to set aside 242 educational channels.

Answers

Answer:

Federal Communications Commission

Explanation:

The 1950s brought the television and interest in using television as a teaching device. In 1952, the Federal Communications Commission decided to set aside 242 educational channels.

The Federal Communication Commission were in charge of determining which type of programs were to be aired based in different factors such as current state of the nation etc.

Other Questions
Nicole deposits $300 into an account that pays simple interest at a rate of 3% per year. How much interest will she be paid in the first 5 years describe gatbys party at the beginning of the chapter. what would it be like to be there? Use at least 5 quotes from the text to support your answer Tobacco smoke is the leading cause of both lung cancer and emphysema. How are the effects of the two diseases different? Diane earns $14,500 a year. She pays 11% of her gross income for federal, state, and local taxes. She is taxed at the FICA rate of 7.65%. She has 3.5% of her income withheld for personal deductions. She is paid biweekly. What is her net pay for each pay period? Round to nearest cent. What is the oxidation number of P in PF6? What is the slope of a line passing through the points (-1, 3) and (4, -7)A. -2B. -4/3C. 3/4D. 2 What is the density of the paint if the mass of a tin containing 5000 cm3 paint is 7 kg. If the mass of the empty tin, including the lid is 0.5 kg. answer this for me please gotta hurry!! 4x10^-2 Ava has to attend at least 45 physics classes every semester to earn attendance points. If she can attend 3 classes every week, write an inequality that determines the minimum number of weeks Ava should attend physics classes. PLEASE ANSWER! Read the following scenarios with your group members. Then, determine which Amendment applies to each scenario. Follow the same procedure from above. which function has the range (-infinity,-2]U[0,infinity)? a. y=cos(x+1)b. y=csc(x)-1c. y=sec(x)+1d. y=cot(2x)-1 Meh peepss halp will mark brainliest!!!! u-u 32. If available, the body will always digest which macromolecule for energy first? A. lipids B. proteins C. enzymes D. carbohydrates 33. The class of macromolecule that would most likely be involved in contracting muscles would be A. lipids B. proteins C. enzymes D. carbohydrates One of a physicians patients, a well-respected citizen in a small community, saw the doctor with a complaint of blood in his urine (hematuria). The physician asked the patient if hed had any new sexual partners recently, and the patient admitted that he had. The physician explained to the patient that his urine specimen had been positive for the STI chlamydia. The physician urged the patient to discuss his medical condition with the patients wife, who was also the physicians patient, but the man was reluctant.Discussion Questions: If the patient refuses to confide in the wife, what should the physician do?What are the legal issues in this case? What are the ethical issues? Your best friend is gluten free and you want to go out for lunch. Describe a meal you could order to avoid the symptoms caused by eating gluten. Drag the tiles to the boxes to form correct pears. Multiply the pairs of numbers and match them to their products. During the middle stage of theCivil War the ______A. South was victoriousB. Union controlled supply routesC. Union controlled much of the Confederacy Brainlest to whoever can tell me what pi stands for Chen is bringing fruit and veggies to serve at an afternoon meeting. He spends a total of $28.70 on 5 pints of cut veggies and 7 pints of cut fruit. The food cost is modeled by the equation 5 v plus 7 f equals 28.70, where v represents the cost of one pint of cut veggies and f represents the cost of one pint of cut fruit. If the cost of each pint of fruit is $2.85, what is the approximate price of a pint of veggies? (Round to the nearest cent, as needed.) PLEASE ANSWER ASAP!!!! what properties is used in this equation 4(x + 5) = 40