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 Challenge Solution

I couldn't figure it out first try and had to use the video for help, is that bad?

I couldn't figure it out without using the video for help. Are there any other resources I could use along with these videos? My code I wrote is in an infinite loop.

1 Answer

Eric M
Eric M
11,545 Points

It's perfectly fine to watch the video again to figure something out!

Sometimes the workspaces won't give you as much error detail as you'll get from executing them on your own machine. So it's good to have your own editor and occasionally run a script with python -i your_script_name.pyand see what errors come up, or just use the interactive python shell to figure stuff out.

You can always check out the official docs at https://docs.python.org/3/ to see how a builtin function is supposed to work and there's nothing wrong with just googling your problem and looking at answers on stack overflow.

Edit: I think the book "Automate the Boring Stuff with Python" is pretty good too, it's free online! You can also buy a paper version if you like.