connorrusinek connorrusinek
  • 27-10-2020
  • Computers and Technology
contestada

Write the code for an if statement that adds 5 to the variable num1 if the value stored in the variable testA equals 25. Otherwise subtract 5 from num1.

Respuesta :

Cytokine
Cytokine Cytokine
  • 27-10-2020

In python

if testA == 25:

    num1 += 5

else:

    num1 -= 5

I hope this helps!

Answer Link

Otras preguntas

10. Which of the following is true regarding extinction?
The half-life of radioactive actinium (^227 Ac) is 22 years. How much will remain after 15 years? Find R first.
HELP ANYONE PLEASE Select all that apply. Which of the following things can happen during metabolism of a drug? the drug is broken down into a form that can be
which sequence can be defined by the recursive formula f (1) = 4, f (n 1) = f (n) – 1.25 for n ≥ 1?
(01.06 HC) Lucille has been told she needs to improve her heart health, and she is ready to get started. There are many activities she is considering for her ne
how many joules are in 148 calories? (hint: 1 cal = 4.18 j)
what are youth organizations
two boxes of apples contain a total of 24 apples. if you halve the number of apples in the first box and add 4 apples to the second box, the total changes to 20
Match each charged object to the electric field diagram that each would produce?(I uploaded the diagrams, I had to put them on a word document!)
A catalyst for chemical reactions in biological system is called an