Ответ:
list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(list[-2:]+list[:-2])
# [9, 10, 1, 2, 3, 4, 5, 6, 7, 8]
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(list[-2:]+list[:-2])
# [9, 10, 1, 2, 3, 4, 5, 6, 7, 8]