Python break

>>> for var in “zend-anwar”:
if var == “-“:
break
print (var)

output—   
z
e
n
d