Answers for "python list a step parameter in range() and reverse the list you get. a = [‘a’,1,2,’b’,’c’,3,4,5,6]"

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
1

range(n,n) python

# if numbers are same in the range function then,
# the range function outputs empty range
# this is because, there are no integers b/w n and n
for i in range(1,1):
  print("runs")

# prints nothing
Posted by: Guest on June-10-2020

Code answers related to "python list a step parameter in range() and reverse the list you get. a = [‘a’,1,2,’b’,’c’,3,4,5,6]"

Python Answers by Framework

Browse Popular Code Answers by Language