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

the first step is in oil is what
Write an equation to represent: four-fifths of z added to six equals eight A) 4/5 z + 6 = 8 B) 4/5 + 6z = 8 C) 4/5 (6)(z) = 8 D) 4/5 (6) + z = 8
A young child who is spanked after running into the street learns not to repeat this behavior. in this case, the spanking acts as a __________________ of the ch
Earth has an abundant amount of iron, but also has many elements heavier than iron. Form a hypothesis
The components of a good thesis statement are restating the stem of the prompt, and two good supporting examples
Marketing according to the​ videlife is good: products, services and brands (7:40 mins) jim​ laughlin, the director of communications for life is​ good, emphasi
What body systems depend on the nervous system?
What is the least common multiple of 72 and 42?
Convert the repeating decimal to a fraction
Which challenge did James Watt's steam engine help address?