python create list with rang code example
Example: python create list with rang
# Create a list in a range of 10-20
mock = [*range(10, 21, 1)]
print(mock) #[10,11,12,13,14,15,16,17,18,19,20]
# Create a list in a range of 10-20
mock = [*range(10, 21, 1)]
print(mock) #[10,11,12,13,14,15,16,17,18,19,20]