viewing paste Unknown #53374 | Python

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
for item in [1,2,3]:
    
    index = 0
    while True:
        
        index = index + 1
        
        print("Index:", index)
        print("Item:", item)
        print("---")
        
        if index is not 3:
            continue
        else:
            break
 
        print("This is never triggered, and therefore not displayed.")
        
print("exit")
exit(0)
Viewed 446 times, submitted by Streusel.