Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,515 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.