found = False
print ('Before', found)
for value in [9, 41, 12, 3, 74, 15] :
    if value == 3 :
        found = True
        # break will stop program after 3 is found
    print(found, value)
    
print('After', found)
