snake.length = 2
index = int(input("Enter the snake's index: "))
length = int(input("Enter the snake's length: "))
snakes[index].length = length