In todays image we can see that i am using two new keywords, remove and pop.
The best way to think about it is that pop "pop()" removes the last element from the list, or you could put a index value, so in this case in the image i have put 1, this is the second element because python starts with 0. Next we have remove and this wants to know the value you want to remove, so in this case i entered a string, and it removed it from the list.
If you was to put "name = user.remove("sam")" it would take out the value from the list and put into the variable to be used later.
1
9 reads
IDEAS CURATED BY
Keep reading, keep studying, the more you learn the more you change. If you are doing the Python lessons please join this discord channel https://discord.gg/kugXx9KY but please follow the rules
CURATOR'S NOTE
learning is the best this we can do to better our selves, teach each other
“
Similar ideas
Read & Learn
20x Faster
without
deepstash
with
deepstash
with
deepstash
Personalized microlearning
—
100+ Learning Journeys
—
Access to 200,000+ ideas
—
Access to the mobile app
—
Unlimited idea saving
—
—
Unlimited history
—
—
Unlimited listening to ideas
—
—
Downloading & offline access
—
—
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates