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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • 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.

    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.