Codingbat - rotate_left3 (Python)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

def rotate_left3(nums):
# result = index 1, 2 (and so on if needed) and then adds index 0 to the beginning using + nums[:1]
result = nums[1:] + nums[:1]
return result

if also an option

Mbkelite
visit shbcf.ru