✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop
    • Close
  • Yuda Leh
    Yuda Leh
    7,618 Points

    Best way to move items? .remove() or .pop()?

    Posted on Nov 22, 2016 by Yuda Leh
    Yuda Leh
    7,618 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    1 Answer

  • john larson
    john larson
    16,594 Points

    This is someone else's code that I patched up so it would work, and it does but...

    Posted on Sep 12, 2016 by john larson
    john larson
    16,594 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    1 Answer

  • Simon Dein
    Simon Dein
    4,772 Points

    Why not make the 'idx' inside the function?

    Posted on Jun 15, 2016 by Simon Dein
    Simon Dein
    4,772 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    1 Answer

  • Onur Salman
    Onur Salman
    3,612 Points

    I am trying to use two integer lists and add the numbers that are same in one list

    Posted on Apr 4, 2016 by Onur Salman
    Onur Salman
    3,612 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    1 Answer

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Breaking a string line

    Posted on Sep 15, 2015 by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    7 Answers

  • Emmet Lowry
    Emmet Lowry
    10,196 Points

    how do I know what I have removed from the list with pop

    Posted on May 21, 2015 by Emmet Lowry
    Emmet Lowry
    10,196 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    5 Answers

  • otarie
    otarie
    984 Points

    Why is my DEVOWEL program not working?

    Posted on Feb 22, 2015 by otarie
    otarie
    984 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    3 Answers

  • Steven Wheeler
    Steven Wheeler
    2,330 Points

    Moving items in a list?

    Posted on Feb 2, 2015 by Steven Wheeler
    Steven Wheeler
    2,330 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    2 Answers

  • Venkiteswaran Subramanian
    Venkiteswaran Subramanian
    7,643 Points

    Only odd indexed items in the list getting deleted while trying to clear the entire list using remove method

    Posted on Dec 26, 2014 by Venkiteswaran Subramanian
    Venkiteswaran Subramanian
    7,643 Points
    • Python
    • Python Collections (Retired)
    • Lists Redux
    • Pop

    4 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.