In a nested loop, after breaking out of the inner loop and going to the top loop it skips the parameters of the inner loop. Why and how can I fix this?
for i in range(5):
    for j in range(5):
        if i == j:
            print('Same Number')
        break
This code only prints 'Same Number' once. When 1 = 1. I'm not sure why j never changes but i does.
 
    