Skip to content

Instantly share code, notes, and snippets.

@Vishakha263
Created April 7, 2019 12:49
Show Gist options
  • Save Vishakha263/117ffe89693c559c3204e40b5377f857 to your computer and use it in GitHub Desktop.
Save Vishakha263/117ffe89693c559c3204e40b5377f857 to your computer and use it in GitHub Desktop.
list=[1,2,3,4,1,2,3,4,1,2]
for i in list:
if (i==4):
break
print(i)
@ishita20
Copy link

ishita20 commented Oct 17, 2019

num ="123412342"
for i in num:
  if(i=='4'):
    break
print(i, end=" ")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment