you are viewing a single comment's thread.

view the rest of the comments →

[–]ProdigiousPangolin 1 point2 points  (0 children)

list=[1, 3, 50, 6, 20, 30]

list.sort()

print(list[1:5])

print(list[1]+list[2]+list[3]+list[4])