Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • Mohammed Miah
    Mohammed Miah
    195 Points

    My Code work: working on mac - python3

    Posted June 28, 2019 6:39pm by Mohammed Miah
    Mohammed Miah
    195 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    2 Answers

  • Michael Little
    Michael Little
    2,514 Points

    Why is my code not working??

    Posted April 25, 2019 12:25am by Michael Little
    Michael Little
    2,514 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    2 Answers

  • Anthony Grodowski
    Anthony Grodowski
    4,902 Points

    Challanged myself to complete the challange in a harder way but smth went wrong. Can you tell, what?

    Posted April 22, 2019 4:35pm by Anthony Grodowski
    Anthony Grodowski
    4,902 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • Vincent Cegers
    Vincent Cegers
    1,248 Points

    wont print final else statement

    Posted March 2, 2019 6:23am by Vincent Cegers
    Vincent Cegers
    1,248 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    2 Answers

  • horus93
    horus93
    4,333 Points

    Is there a better way to delete multiple items at distinct points within a list?

    Posted November 30, 2018 6:35am by horus93
    horus93
    4,333 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    2 Answers

  • Nick Evershed
    Nick Evershed
    6,429 Points

    Printing wrong snack

    Posted October 24, 2018 11:39am by Nick Evershed
    Nick Evershed
    6,429 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • rsa14
    rsa14
    1,865 Points

    Tried to run code in console, nothing popped up?

    Posted October 2, 2018 5:38pm by rsa14
    rsa14
    1,865 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • Abdullah Jassim
    Abdullah Jassim
    4,551 Points

    Why is it necessary to use While True? Is it possible to run without it? For me it doesnt work

    Posted June 20, 2018 10:19am by Abdullah Jassim
    Abdullah Jassim
    4,551 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    2 Answers

  • Alim Nastaev
    Alim Nastaev
    15,838 Points

    Undefined variable 'snack' - any idea why?

    Posted May 16, 2018 5:47pm by Alim Nastaev
    Alim Nastaev
    15,838 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    3 Answers

  • Youssef Moustahib
    Youssef Moustahib
    7,779 Points

    Why does it print wrong?

    Posted March 25, 2018 1:43pm by Youssef Moustahib
    Youssef Moustahib
    7,779 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    2 Answers

  • Youssef Moustahib
    Youssef Moustahib
    7,779 Points

    Why won't it append?

    Posted March 24, 2018 2:52pm by Youssef Moustahib
    Youssef Moustahib
    7,779 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • Michael Thompson
    Michael Thompson
    7,427 Points

    vending machine syntax error

    Posted January 20, 2018 4:23pm by Michael Thompson
    Michael Thompson
    7,427 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • Modou Sawo
    Modou Sawo
    13,141 Points

    I'm reviewing; this code doesn't work on my mac, I can't figure out the problem.

    Posted February 14, 2017 5:44am by Modou Sawo
    Modou Sawo
    13,141 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • George Lugo
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    George Lugo
    Python Web Development Techdegree Student 922 Points

    why is my function not working

    Posted February 4, 2017 2:57am by George Lugo
    .a{fill-rule:evenodd;}techdegree
    George Lugo
    Python Web Development Techdegree Student 922 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • Joe Williams
    Joe Williams
    16,945 Points

    Python workspace is not working

    Posted February 1, 2017 9:56pm by Joe Williams
    Joe Williams
    16,945 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

  • huyen nguyen
    huyen nguyen
    850 Points

    can you use 'return' command before snack instead of continue at the end?

    Posted January 12, 2017 2:43am by huyen nguyen
    huyen nguyen
    850 Points
    • Python
    • Python Collections (2016, retired 2019)
    • Lists
    • Pop

    1 Answer

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

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord