Q1
user_7676782
python
3 years ago
227 B
8
Indexable
lst = []
# get any 10 values from the users
# and saves them in a list
for i in range(10):
lst.insert(i, input("enter something: "))
print(lst[0:3])
print(lst[7:10])
print(lst[1:10])
print(lst[0:9])
print(lst[:])Editor is loading...