I need to generate the list of integers 1 to 100 (that's ok). But I need to then show a list of the first 10 numbers
print(" ")
for i in range(1, 11):
print(list[i])
print(" ")
This is giving me list[1]
, then next line list[2]
etc., instead of List [1,2,3,4,5,6,7,8,9,10]