Strings In Depth11 / 19
Up next

Iterate lines

text = """first
second
third"""
for i, line in enumerate(text.splitlines(), start=1):
    print(i, line)
What you're solving

splitlines and multiline strings