begin quizbot

This commit is contained in:
ChUrl
2021-05-29 00:11:01 +02:00
parent 366ce98a93
commit b4cda8f4cc
3 changed files with 119 additions and 2 deletions

11
quiz.py Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env python3
class Quiz(object):
def __init__(self, name):
self.questions = []
with open(name) as file:
for line in file:
question = tuple(string.strip() for string in tuple(line.split(" ")))
self.questions.append(question)