Python break

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

output—   
z
e
n
d

Leave a Reply

Your email address will not be published. Required fields are marked *