Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics Functions and Looping Raise an Exception

james mchugh
james mchugh
6,234 Points

I'm trying to raise a value error, but it's not working out.

I think I'm not using the length properly. I keep getting this message. Bummer: Oh no, there were 2 problems with your code, check the preview pane for more information. The preview is saying something about object type int. I think it's how I'm declaring my len()

james mchugh
james mchugh
6,234 Points

oh, usually it loads the code with my question. I'm not sure how this works.

Steven Parker
Steven Parker
231,269 Points

Odd that it provided the link button but not the code. But you can copy/paste in your code.

Use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. :arrow_heading_down:
Or watch this video on code formatting.

james mchugh
james mchugh
6,234 Points

Thanks Steven Parker. I didn't even notice it didn't load my code. Now that I'm aware of this I'll cut and paste it if it doesn't load.

1 Answer