0
Why are not taking last indexing number?
squares = [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] print(squares[2:6]) [4,9,16,25] Why are not taking 6 indexing number (36)
2 Antworten
+ 4
start index is included but not the end
so if u have array[5:10]
it will give element start from index 5 till index 9