Solution 1.3§

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