33.7k views
5 votes
What are the missing parts to produce the following output?

0
1
2



num in range(

):
print (num )

User Roro
by
5.4k points

1 Answer

4 votes

Answer:

for num in range(0, 3):

print(num)

or

for num in range(3):

print(num)

both will produce the output

0

1

2

User TankofVines
by
5.7k points