Skip to content

Instantly share code, notes, and snippets.

@Vishakha263
Last active May 6, 2019 04:11
Show Gist options
  • Save Vishakha263/cc56abb43933a4b0ec9e134abea82255 to your computer and use it in GitHub Desktop.
Save Vishakha263/cc56abb43933a4b0ec9e134abea82255 to your computer and use it in GitHub Desktop.
break
import random
bottles=['Yellow','Blue','Red','Black']
lives=4
for chances in range (0,20):
shot_bottle=random.choice(bottles)
print(shot_bottle)
if (shot_bottle == 'Black'):
lives -=1
if (lives==0):
print('OUT OF LIVES')
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment