code_py
code_py copied to clipboard
Unnecessary 'else' statement
After the for loop has ended there is an unnecessary else statement at the end of for loop. After the loop ends, we can just do this for example: for i in range(1,5): print(i) print('All done')