Vá para
from goto import goto, label
for x in range(1, 10):
for y in range(1, 20):
for z in range(1, 30):
print x,y,z
if z == 3:
goto .end
label .end
print "Finished"
Elegant Eagle