Computer Science, asked by shivamkings645, 6 months ago

Answer fast
for i in range(-5):
print(i)

Answers

Answered by RehanAk73
1

Answer:

Explanation:

range() function with the help of different examples. The built-in function range() generates the integer numbers between the given start integer to the stop integer, i.e., It returns a range object. Using for loop, we can iterate over a sequence of numbers produced by the range() function. Let’s understand how to use a range() function of Python 3 with the help of a simple example.

print("Python range() example")

print("Get numbers from range 0 to 6")

for i in range(6):

   print(i, end=', ')

Similar questions