i = 0
print('the result', end=' ') # begin line with 'the result'
while i < 5:
print(i, end=' ')
i = i + 1
print() # move to next line
i = 0
print('the result', end=' ') # begin line with 'the result'
while i < 5:
print(i, end=' ')
i = i + 1
print() # move to next line