May-08-2019, 09:01 PM
The first
The first print could be moved to before the loop and the loop change to start at 1 instead of 0, then if statement would no longer be required.
print('##')
always happens only on the first iteration of the loop, the if statement has to check every time after that if i == 0:
.The first print could be moved to before the loop and the loop change to start at 1 instead of 0, then if statement would no longer be required.