Created
December 26, 2020 23:17
-
-
Save 97997/6281bc2d6b3ec081daffc7b0b7e698f8 to your computer and use it in GitHub Desktop.
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 | |
from copy import deepcopy | |
lines = [] | |
f = open("opciones.txt") | |
for line in f.readlines(): | |
lines.append(line.strip()) | |
def generate(lines): | |
static_lines = deepcopy(lines) | |
random.shuffle(lines) | |
while len(lines) > 0: | |
print(lines.pop(), end="") | |
input() | |
print("===RESET===") | |
generate(static_lines) | |
generate(lines) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment