Python Python Basics (2015) Shopping List App Continue

Sean Frye
Sean Frye
1,166 Points

I'm lost

Even right after watching the whole video and following very closely, I am still confused about this and I honestly don't know what I am doing here. I am under the impression that I am way off on this one.

breaks.py
def loopy(items):
    if items = abcde:
        continue

2 Answers

Alex Koumparos
MOD
Alex Koumparos
Python Web Development Treehouse Moderator 32,445 Points

Hi Sean,

Always running into roadblocks is just part of learning a new language. I think you're going to experience some of that whichever language you use.

That said, some languages just 'click' better than others with people, and those languages can be different for everyone. Maybe Python isn't intuitive for you. It wouldn't hurt to try the basics of another language. Maybe you'll decide that another language makes much more sense to you, or maybe hearing the same concepts from a different teacher in a different language will help to make those concepts in Python make more sense.

If you do want to get a taste of another language, I'd suggest Ruby. It's a very approachable and well-designed language. It's also very similar conceptually to Python (so any concepts you learn will translate well between the languages) but quite different syntactically (so if Python just doesn't click with you, there's a better chance that Ruby will). Ruby also has a large, friendly and helpful community who are passionate about the language, so you'll always be able to find someone who can give you pointers.

Alternatively, you could stick with Python but maybe watch or read some tutorials from someone different than the teacher on Treehouse. In my life I've found that sometimes I just need to hear the same thing expressed slightly differently from a different teacher for it to make sense.

Hope that helps,

Alex

Alex Koumparos
MOD
Alex Koumparos
Python Web Development Treehouse Moderator 32,445 Points

Hi Sean,

Looks like you're stuck on the concept of for loops. Not sure which videos you rewatched but I'd suggest rewatching the 'Around and Around' video, which introduces loops. Or, if you wanted a written explanation instead of a video one, try section 4.2 of the Python docs that explains and illustrates for loops.

Once you've figured out the basics of loops, we can dig into the difference between checking membership vs equality, and the difference between checking equality and assignment.

Sean Frye
Sean Frye
1,166 Points

I'm just always running into roadblocks. Would it be easier to learn a different coding language instead?