Q. What is the purpose of the append() method in a Python list?

A
Sort the list
B
Add an item to the end of the list
C
Remove an item
D
Reverse the list
Solution:

The append() method adds a single item to the end of a Python list.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!