113k views
5 votes
Which program will have the output shown below?

5
6
7

>>> for count in range(4, 7):
print(count)

>>> for count in range((4, 8):
print(count)

>>> for count in range(5,7):
print(count)

>>> for count in range(5, 8):
print(count)

User Yathirigan
by
4.6k points

1 Answer

4 votes

for count in range(5, 8):

print(count)

This will produce.

5

6

7

I hope this helps!

User Aryzing
by
4.1k points