List methods
There are numerous methods which can be applied on lists. You can find out more by following this link.
fruit = ["pear", "banana", "apple", "mango"] fruit.reverse() print fruit fruit.sort() print fruit
Append “lemon” to the list, sort it and then finally print to move onto the next task.
Output: (clear)











