✨ 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 Basics
    • Functions and Looping
    • Expecting Exceptions
    • Close
  • Michael Motes
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Michael Motes
    Front End Web Development Techdegree Student 1,651 Points

    NameError: name 'total' is not defined

    Posted on Jan 25, 2022 by Michael Motes
    .a{fill-rule:evenodd;}techdegree
    Michael Motes
    Front End Web Development Techdegree Student 1,651 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • Anshuman Nag
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Anshuman Nag
    Web Development Techdegree Student 222 Points

    i got this error ImportError: bad magic number in 'math': b'\x03\xf3\r\n'

    Posted on Aug 26, 2021 by Anshuman Nag
    .a{fill-rule:evenodd;}techdegree
    Anshuman Nag
    Web Development Techdegree Student 222 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • peterrrrrrr
    peterrrrrrr
    564 Points

    check_please - Completely Overwhelming!

    Posted on Mar 7, 2021 by peterrrrrrr
    peterrrrrrr
    564 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    3 Answers

  • Shaquille Paul
    Shaquille Paul
    700 Points

    IndentationError [SOLVED]

    Posted on Jan 31, 2021 by Shaquille Paul
    Shaquille Paul
    700 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • Austin Jung
    Austin Jung
    1,311 Points

    Try/Except statement scope

    Posted on Jan 28, 2021 by Austin Jung
    Austin Jung
    1,311 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • Jessica Smithers
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jessica Smithers
    Python Development Techdegree Student 227 Points

    ZeroDivisionError not working?

    Posted on Jan 18, 2021 by Jessica Smithers
    .a{fill-rule:evenodd;}techdegree
    Jessica Smithers
    Python Development Techdegree Student 227 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • Omar Hussien Khafagy
    Omar Hussien Khafagy
    1,431 Points

    Code from outside the house

    Posted on Dec 26, 2020 by Omar Hussien Khafagy
    Omar Hussien Khafagy
    1,431 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    5 Answers

  • Michael Domenge
    Michael Domenge
    225 Points

    I have zero experience and i feel like he's going way too fast in this video. Anyone else need to rewatch multiple times

    Posted on Nov 29, 2020 by Michael Domenge
    Michael Domenge
    225 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    4 Answers

  • Soham Haryani
    Soham Haryani
    262 Points

    Try and except

    Posted on Nov 8, 2020 by Soham Haryani
    Soham Haryani
    262 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    2 Answers

  • Cameron Nazarko
    Cameron Nazarko
    810 Points

    How to re-execute try statement after ValueError.

    Posted on May 9, 2020 by Cameron Nazarko
    Cameron Nazarko
    810 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    2 Answers

  • Ashwin Kumar
    Ashwin Kumar
    680 Points

    What else is try statement used for? Is it only for exception handling?

    Posted on Sep 18, 2019 by Ashwin Kumar
    Ashwin Kumar
    680 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    2 Answers

  • Olyadi Angassa
    Olyadi Angassa
    4,051 Points

    Is it posssible to nest a try exception in another try exception?

    Posted on May 4, 2019 by Olyadi Angassa
    Olyadi Angassa
    4,051 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    2 Answers

  • Vaibhav Kalra
    Vaibhav Kalra
    560 Points

    Using Except when name of errors is not known.

    Posted on May 3, 2019 by Vaibhav Kalra
    Vaibhav Kalra
    560 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • Manuel Canario
    Manuel Canario
    1,458 Points

    How can I get the same program or code that the teacher is working on the video?

    Posted on Apr 25, 2019 by Manuel Canario
    Manuel Canario
    1,458 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    3 Answers

  • Christiian Allen
    PLUS
    Christiian Allen
    Courses Plus Student 859 Points

    expecting and raising exceptions

    Posted on Oct 27, 2018 by Christiian Allen
    Christiian Allen
    Courses Plus Student 859 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    5 Answers

  • Mark Roudebush
    Mark Roudebush
    901 Points

    A question about 2 of 2 in the Create a Function quiz

    Posted on Oct 24, 2018 by Mark Roudebush
    Mark Roudebush
    901 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    3 Answers

  • Minseok Kim
    Minseok Kim
    2,708 Points

    Value error, name error, type error?

    Posted on Sep 22, 2018 by Minseok Kim
    Minseok Kim
    2,708 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • Philip Schultz
    Philip Schultz
    11,437 Points

    Try except block question

    Posted on Jul 19, 2018 by Philip Schultz
    Philip Schultz
    11,437 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    1 Answer

  • Timothy Villaraza
    Timothy Villaraza
    394 Points

    It almost seems like we should ALWAYS be using the function "try" while writing code just so that we can handle errors.

    Posted on Jun 7, 2018 by Timothy Villaraza
    Timothy Villaraza
    394 Points
    • Python
    • Python Basics
    • Functions and Looping
    • Expecting Exceptions

    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.