kittypower822
kittypower822 kittypower822
  • 20-11-2020
  • Computers and Technology
contestada

What is the output of the following program?
numA = 2
while numA < 30:
numA = numA * 5
print(numA)

Respuesta :

vfxdead
vfxdead vfxdead
  • 20-11-2020

Answer:

the output of that code would be invalid syntax since the line,

>>> numA = numA * 5

is not indented.

The output of

>>> numA = 2

>>> while numA < 30:

>>> numA = numA * 5

>>> print(numA)

would be 50.

Answer Link
potatoehead1234 potatoehead1234
  • 30-12-2020

Answer:

Your answer would be 50

Explanation:

Edge 2020

Answer Link

Otras preguntas

Help I don’t know the answer
One way for Mrs. Jones to gain this office is to be elected by - a) registered voters of the city b) members of the Governor's cabinet c) legislative representa
pleaseeee help me please t​
let a and b be the roots of the equation x^2-2(p+1)x+p^2+8=0. If the absolute value of the difference of a and b equals to 2. find p
calculate the kinetic energy of a ball of mass 50g travelling of 30m/s how much work will need to be done to stop the ball​
LAND USE REFLECTION WORKSHEET, PLEASE HELP ME, I AM GOING TO GIVE BRAINLY STARS!!!Use your module survey (anticipation guide) and your AEIOU activity to write y
If two boxes are pushed with the same amount of total force, one weighs 1kg & the other weights 100 kg, which box will accelerate faster
Mind and hands are the treasure to serve others​
Evaluate the function at the given values. h(x) = x² – 3x + 2 a. h(2) b. h(-2) c. h(0) a. h(2)=
What is the first step in the marketing research process?