add elements to list python

myList = [apples, grapes]
fruit = input()#this takes user input on what they want to add to the list
myList.append(fruit)
#myList is now [apples, grapes, and whatever the user put for their input]

Here is what the above code is Doing:
1. It creates a list called myList.
2. It adds apples and grapes to the list.
3. It asks the user for input on what they want to add to the list.
4. It adds the user’s input to the list.
5. myList is now [apples, grapes, and whatever the user put for their input]