home
Learn
screen_rotation
num = [100, 200, 600, 400, 300, 250,1000,1100,900,800] print(num[2:4]) print(num[-4:-2])
Program Output
[600, 400] [1000, 1100]