Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

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

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

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

  • 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
  • Jason Grout
    Jason Grout
    4,809 Points

    Possible to download teachers notes as reference or study material?

    Posted August 25, 2017 1:41pm by Jason Grout
    Jason Grout
    4,809 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    0 Answers

  • ryan smith
    ryan smith
    687 Points

    Swallowing errors? I don't get what he means.

    Posted August 10, 2017 3:37am by ryan smith
    ryan smith
    687 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    3 Answers

  • shariq ali
    shariq ali
    551 Points

    I want to add try function in random game but sttuck.

    Posted July 20, 2017 3:45pm by shariq ali
    shariq ali
    551 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    2 Answers

  • tonypitkin2
    PLUS
    tonypitkin2
    Courses Plus Student 1,950 Points

    Do you need to declare a float on a per-value level?

    Posted July 3, 2017 11:58pm by tonypitkin2
    tonypitkin2
    Courses Plus Student 1,950 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    1 Answer

  • Soumik Rakshit
    Soumik Rakshit
    2,745 Points

    Shouldn't the exception should be NameError instead of ValueError?

    Posted May 22, 2017 3:40pm by Soumik Rakshit
    Soumik Rakshit
    2,745 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    1 Answer

  • Nilton S Bossolan
    PLUS
    Nilton S Bossolan
    Courses Plus Student 1,047 Points

    Loop back to input if input is not number.

    Posted February 8, 2017 1:55pm by Nilton S Bossolan
    Nilton S Bossolan
    Courses Plus Student 1,047 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    2 Answers

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

    exceptions.py

    Posted January 27, 2017 6:05pm by George Lugo
    .a{fill-rule:evenodd;}techdegree
    George Lugo
    Python Web Development Techdegree Student 922 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    3 Answers

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

    im trying this on the workspace and it is still not working i do not understand why

    Posted January 27, 2017 5:45pm by George Lugo
    .a{fill-rule:evenodd;}techdegree
    George Lugo
    Python Web Development Techdegree Student 922 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    4 Answers

  • Sky Lu
    Sky Lu
    1,260 Points

    What does ValueError mean?

    Posted October 22, 2016 9:27am by Sky Lu
    Sky Lu
    1,260 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    1 Answer

  • Zachary Maldonado
    Zachary Maldonado
    5,895 Points

    Can you try multiple inputs at once?

    Posted October 3, 2016 7:47am by Zachary Maldonado
    Zachary Maldonado
    5,895 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    0 Answers

  • Eric Ouellette
    Eric Ouellette
    3,332 Points

    The Exception to the Rule

    Posted September 30, 2016 7:14pm by Eric Ouellette
    Eric Ouellette
    3,332 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    2 Answers

  • Vishal Gali
    Vishal Gali
    5,761 Points

    i need help in the quiz

    Posted September 4, 2016 8:06am by Vishal Gali
    Vishal Gali
    5,761 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    2 Answers

  • Mariya Shklyar
    Mariya Shklyar
    1,022 Points

    Need help with quiz

    Posted September 1, 2016 3:02am by Mariya Shklyar
    Mariya Shklyar
    1,022 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    2 Answers

  • linzhang5
    linzhang5
    2,398 Points

    ValueError syntax error message in my own terminal

    Posted August 26, 2016 2:57am by linzhang5
    linzhang5
    2,398 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    4 Answers

  • Martin Leahy
    Martin Leahy
    4,111 Points

    I receive a NameError when running this.

    Posted July 29, 2016 5:13pm by Martin Leahy
    Martin Leahy
    4,111 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    1 Answer

  • Nitin Gupta
    Nitin Gupta
    735 Points

    Try and Except Challenge

    Posted July 28, 2016 10:49am by Nitin Gupta
    Nitin Gupta
    735 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    3 Answers

  • Zeljko Porobija
    Zeljko Porobija
    11,491 Points

    except yields with different result

    Posted June 26, 2016 9:07am by Zeljko Porobija
    Zeljko Porobija
    11,491 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    3 Answers

  • henry jefferson
    henry jefferson
    2,136 Points

    Try and except problem. I'm trying to write a function that outputs only a letter; an alphabetic letter.

    Posted June 14, 2016 3:34am by henry jefferson
    henry jefferson
    2,136 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    10 Answers

  • Alan Sea
    Alan Sea
    6,781 Points

    Error on line 10 of exceptions.py

    Posted March 7, 2016 6:43pm by Alan Sea
    Alan Sea
    6,781 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    1 Answer

  • mohit jain
    mohit jain
    1,060 Points

    how is try and except blocks different than using if else function in your code?

    Posted January 19, 2016 8:25am by mohit jain
    mohit jain
    1,060 Points
    • Python
    • Python Basics (2015)
    • Logic in Python
    • The Exception to the Rule

    2 Answers

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