Building Lists With Python's .append()
Howard Francis
39:55
Description
Adding items to a list is a fairly common task in Python, so the language provides a bunch of methods and operators that can help you out with this operation. One of those methods is .append(). With .append(), you can add items to the end of an existing list object. You can also use .append() in a for loop to populate lists programmatically.
What You'll Learn?
- Work with
.append()
- Populate lists using
.append()
and afor
loop - Replace
.append()
with list comprehensions - Work with
.append()
inarray.array()
andcollections.deque()
More details
User Reviews
Rating
Howard Francis
Instructor's CoursesWanting to learn Python, Howard did what any college instructor would do – he taught a class in it. He loved it. (You’ll have to ask his students how they felt.) He continued learning after the course was over, and found Real Python to be one of the most useful sources of information. Now he’s here hoping to help others.
Howard currently teaches Computer Science and Mathematics at the University of Pikeville in eastern Kentucky. An amateur musician, he plays trumpet in local wind bands, organ at his church, and is learning guitar.

Real Python
View courses Real Python- language english
- Training sessions 11
- duration 39:55
- Release Date 2023/01/05