Pretty simple question really but something I really don't understand. I would expect the below code to print 3 * 'x', but it only prints it twice. I know raised becomes 3 which breaks the loop, but I'm expecting the 'x' to be printed before it breaks.
So raised is < 3 twice, expecting 2 * 'x', then a third should print when the else statement runs. So why does it only print 2 * 'x'?
raised = 1
while raised < 5:
    raised +=1
    print(raised)
    print('x')
    if raised == 3:
        break
else:
    print('x')
 
    