Solution 1.3ยง

for n in range(5):
    for c in 'abc':
        print(n, c)
1