spicee68003 spicee68003
  • 13-12-2020
  • Computers and Technology
contestada

PLEASE HELP!
Question # 1 Fill in the Blank What is the output?
for num in range(3):
print (num + 5)

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 18-12-2020

Answer:

The output is :

5

6

7

Explanation:

Given

The above lines of code

Required

What is the program output

The above code is python

This line implies that n has range of values from 0 to 2

for num in range(3):

This adds 5 to num and prints the result

print (num + 5)

So, when num = 0; 5 is printed because 0 + 5 = 5

So, when num = 1; 6 is printed because 1 + 5 = 6

So, when num = 2; 7 is printed because 2 + 5 = 7

Hence, the output is

5

6

7

With each number printed on a separate line

Answer Link

Otras preguntas

1. Determine the measure of each unknown angle using the diagram below. Date a. m2 = b. m3 = c. m 4 = 4 3 2 106°
find the area of this figure. round your answer to the nearest hundredth. use 3.14 to approximate pi
3. Why did Percy's mother tell Percy not to keep call his name?answer please!!?​
Leave your answer I’m exact form Can someone help pleaseeeee !!!!!
Help please soon please
ASAP please ........​
can you please help me please I hope with solutions please ​
Hi I will Award brainlist : Over what interval(s) is the function negative? Explain how you know.
Write as an equation: If a number is decreased by five, and then the result is multiplied by two, the result is 26.
3. Los lunes, miércoles y viernes Answer (estudiar, él) en la biblioteca.