A range can further be converted into a list by using the list() casting.
Here’s an example of a range being used to create a list of numbers:
xxxxxxxxxx
num_seq = range(0, 10) # A sequence from 0 to 9
num_list = list(num_seq) # The list() method casts the sequence into a list
print(num_list)
num_seq = range(3, 20, 3) # A sequence from 3 to 19 with a step of 3
print(list(num_seq))