Last active
September 2, 2019 04:51
-
-
Save Inazuma110/3f77e9de1f926bd74276a86aec2c3ad9 to your computer and use it in GitHub Desktop.
Bingo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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