Skip to content

Instantly share code, notes, and snippets.

@Vishakha263
Last active May 25, 2019 13:39
Show Gist options
  • Save Vishakha263/c1a93f19c7583f2635aacd94e43f70ff to your computer and use it in GitHub Desktop.
Save Vishakha263/c1a93f19c7583f2635aacd94e43f70ff to your computer and use it in GitHub Desktop.
break
shot_bottles=['Yellow','Green','Blue','Red','Black']
level,score=1,0
for bottle in shot_bottles:
if bottle != 'Black':
score+=1
if score==2:
level+=1
break
@muddlebee
Copy link

muddlebee commented May 25, 2019

shot_bottles=['Yellow','Green','Blue','Red','Black']

level,score=1,0
for bottle in shot_bottles:
    if bottle != 'Black':
       score+=1 
    if score==2:
       level+=1
       break

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