Python foreach equivalent

Sure. A for loop.

for f in pets:
    print f

Leave a Comment