Gaming task

Report a typo

Little Niki played with toys and put them into a list to keep track of them.

toys = ['Marinet', 'Toby', 'Kitty']

Then, she decided to add another toy, named "Chubby", after which she sorted the list. As a result, she got the following:

['Toby', 'Kitty', 'Chubby', 'Marinet']

Unfortunately, Niki forgot to save the code. Restore it to get the same result!

The input you will get is a list of four toy names, including "Chubby". You should sort the list and print it. Pay attention to the sorting function!

Sample Input 1:

Toby Marinet Chubby Kitty

Sample Output 1:

['Toby', 'Kitty', 'Chubby', 'Marinet']
Write a program in Python 3
# the following line reads the list from the input, do not modify it, please
toys = input().split()

# your code below
___

Create a free account to access the full topic