asked 170k views
5 votes
Question # 5

Fill in the Blank
Fill in the missing parts to produce the following output.

OUTPUT:
0
1
2
3

num in range(
):
print (num)

asked
User Slimer
by
8.1k points

1 Answer

4 votes

for num in range(4):

print(num)

The output will be:

0

1

2

3

The for loop iterates through the numbers in the range function and prints those same numbers to the console.

answered
User Tom Ashworth
by
8.5k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.