Skip to content

Instantly share code, notes, and snippets.

@Inazuma110
Last active September 2, 2019 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Inazuma110/3f77e9de1f926bd74276a86aec2c3ad9 to your computer and use it in GitHub Desktop.
Save Inazuma110/3f77e9de1f926bd74276a86aec2c3ad9 to your computer and use it in GitHub Desktop.
Bingo
import random
bingo = [i for i in range(1, 76)]
used = set([])
while len(bingo) > 0:
c = input()
if c == 'd':
print(used)
elif c == 'q':
print('fin')
break
else:
tmp = random.choice(bingo)
print(tmp)
bingo.remove(tmp)
used.add(tmp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment