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

Rune Jacobsen
Rune Jacobsen
15,650 Points

Having a hard time learn Python

Hi everyone.

I started learning Python not long ago but I now reached Python Collections and it is giving me a hard time. I feel like in the lectures I totally get in, but most of the times when I reach the code challenges I am totally lost. Mostly I get the main idea, but I can't get it to do what I want.

It really bumps me out, and I am losing motivation and getting angry. Especially because I choose Python, because it should be one of the best beginner languages. I am really losing motivation.

I currently did a lot of HTML and CSS, and I know that well. And I was planning to get to know Python and do that well, and then move on to JavaScript, but now I just feel like quitting.

Does anyone have any resources or something that can help me with the challenges and give me a better understanding? I don't like to google me to all the answers in the challenges, then I'll never learn.

3 Answers

Hunter G
Hunter G
6,612 Points

Let me tell you man. . I was struggling in Python Collections as well and partly wanted to give up because I thought I wasn't understanding. I even had a similar post to this! Here's my advice - when you get through a lesson, go back and study / make up your own code similar to it and try to implement previous material into because the further you go into Collections that is what seems to happen. The Collections is definitely difficult. When I was going through it, there would be times when I got to an objective and tried to map out the code, which was WAY off, then go to the forums, find multiple code's of other who mods had helped them correct, and really try to pick apart each loop or function to where I understood it. The further you get into Collections, there are multiple ways to code the material and you can find multiple examples of it here on the forums. Find which example helps you understand it the most while also reading people's feed back and step by step explanation, and PRACTICE! That is what is going to help your brain understand the material, REPETITION. Coding is all about first hand experience. You can't read it from a book and understand it. You need to repeat it until it becomes second nature. Best way to encourage that is by thinking up some silly programs to make that are similar to the current material you're learning and make them run for yourself. Also, once you further understand the syntax, come onto the forums and see if there's other people that are having problems that you understand. This will help you further concrete it all into your brain. There is light at the end of the tunnel man, don't give up! You signed up to Treehouse for a reason! Nothing worth learning or having is easy my friend. Here's a great article that should help you with motivation problems :) http://www.vikingcodeschool.com/posts/why-learning-to-code-is-so-damn-hard Hope you enjoy the read and inspires you to practice. Cheers mate!

Good advice!

Another good resource, which definitely supports the suggestion of Hunter George to practice and make use of repetition, is this book/online tutorial: Learn Python The Hard Way.

It can take quite a bit of time, but if you follow exactly how they suggest learning it, you'll come out with a much better understanding.

Otherwise, here are a bunch of other good resources (Treehouse, while awesome, shouldn't be your only source of learning), though I haven't used them myself:

Christopher Miller
Christopher Miller
614 Points

Solid advice.

I'm having issues too, where I watch the video and think I understand it and when I try to code something up, I have no idea where to start.

Now, when I watch a video, I try to code up three examples to try and help learn the subject. Sure its going to take more time, however I want to learn this skill.