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

Continue Task - What's wrong with my code?

Hi there. I need help checking what's wrong with my code. When I click to check work, it just says: Bummer! Try again

breaks.py
def loopy(items):
    # Code goes here
    for thing in items:
        if thing[0] == "a"
            continue
        else
            print(thing)

1 Answer

andren
andren
28,558 Points

You are just missing a colon following the if and else statements:

def loopy(items):
    # Code goes here
    for thing in items:
        if thing[0] == "a": # <- Added colon
            continue
        else: # <- Added colon
            print(thing)