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!

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 (2015) Shopping List App Continue

3 Answers

Chris Freeman
Chris Freeman
Treehouse Moderator 68,390 Points

Here is a walkthrough the code:

def loopy(items):
    # Loop through every item in items. 
    for item in items:
        # If the current item's index 0 is the letter "a",
        if item[0] == 'a':
            # continue to the next one.
        # Otherwise, 
            # print out every member of items.
Yasser Shaaf
Yasser Shaaf
UX Design Techdegree Student 13,865 Points

I am really frustrated , most of challenges in python I have solved with help , I am totally new to code , what the hell !

If you are having that much issue with the challenges I would recommend that you re-watch the videos. There have been concepts that I have had to watch over and over before it finally clicked.

I have also found that it helps to watch the video a couple of times THEN open up workspaces and follow along. Then, once I understand WHY the instructor is doing what he is doing I move on to the challenges. I would recommend you do that especially since you are completely new to coding.

There is a misconception I have found that most people have (myself included) where I think that I should be able to watch the video and instantly get it because...video! But this is rarely the case and doubly true for concepts that you are just seeing for the first time.

I am sorry you are getting frustrated! But hang in there! It will click for you...just slow down (take a break for awhile and clear your mind) and don't be afraid to follow what I suggested, you'd be surprised how much that helps!

hang in there and good luck!!

Yasser Shaaf
Yasser Shaaf
UX Design Techdegree Student 13,865 Points

So it means that I have to spend a lot of time on code , I got your points , I know my self will , I am always in hurry !