Answers for "how to define range of list in python"

3

python create list from range

intList = list(range(r1, r2+1))
Posted by: Guest on November-19-2020
1

range list python

# Create a list in a range of 10-20
My_list = [range(10, 20, 1)]
  
# Print the list
print(My_list)
Posted by: Guest on November-01-2021

Code answers related to "how to define range of list in python"

Python Answers by Framework

Browse Popular Code Answers by Language