Answers for "python range with infinity"

2

python range in intervals of 10

print("using start, stop, and step arguments in Python range() function")
print("Printing All odd numbers between 1 and 10 using range()")
for i in range(1, 10, 2):
    print(i, end=', ')
Posted by: Guest on February-25-2020
0

when do we use *range in python

print([*range(20)]) #will give all numbers 1 to 19 in a list
Posted by: Guest on January-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language