Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introducing Lists!
You have completed Introducing Lists!
Preview
Now that we can add stuff, we'll definitely want to make sure we can get stuff out of the list. Let's explore `del` and `pop`.
Code
books = [
"Learning Python: Powerful Object-Oriented Programming - Mark Lutz",
"Automate the Boring Stuff with Python: Practical Programming for Total Beginners - Al Sweigart",
"Python for Data Analysis - Wes McKinney",
"Fluent Python: Clear, Concise, and Effective Programming - Luciano Ramalho",
"Python for Kids: A Playful Introduction To Programming - Jason R. Briggs",
"Hello Web App: Learn How to Build a Web App - Tracy Osborn",
]
Learn More
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
I'm gonna go ahead and copy it, and
paste it, so it's all written now.
0:00
Here we go,
we have the Learning Python book first.
0:00
Let's remind ourselves of
what our app here is doing.
0:03
So I'm going to go to python -i,
for interactive mode,
0:06
and open up wishlist, right.
0:10
It's pulling the first book out,
it's printing the first item out.
0:13
But I've already read that book.
0:16
So I kind of want this off my wish
list before someone buys me an extra
0:18
copy of it.
0:21
I wanna remove it, so you might have
not seen the del statement before.
0:22
Well, basically del which is short for
0:27
delete allows you to essentially
remove a label from an object.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up