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

What is a format for your for your resume if you feel when you add job at experience
Nuclear power has come under higher scrutiny in recent years. Which statement would make the strongest argument for the use of nuclear power? Nuclear power has
Joel's family has four more pets than Brian's family. Together the two families have at least 7 pets. Let x represent the number of pets Brian's family has. Wh
20 points What is the equation of a line parallel to the given line with an X intercept of 4
10 + 10x i don’t know
Approximately how many times greater is 6 x 10^-5 than 5 x 10^-9
What was the main reason why the Han dynasty and the Western Roman Empire collapsed?
(Game Design) Which of the following is a free alternative for working with vector graphics? A. GIMP B. Blender C. Inkspace D. Adobe Illustrator
List and explain two reasons for the deterioration of relations between the British and colonists
What is the equation of the line-2,3 and 2,7