Python Python Basics (2015) Shopping List App Continue

Jacob Clinton
Jacob Clinton
3,014 Points

How do I continue to the next without using continue?

I don't know how to skip to the next in the list?

breaks.py
def loopy(items):
    for item in items:
        if item[0] != 'a':
            continue
        else:
            print(item)

1 Answer

Ben Reynolds
Ben Reynolds
35,166 Points

You need to check if the first letter is 'a' but your code is checking if the first letter is NOT 'a'