Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- global questions
- questions = []
- global answers
- answers = []
- menu()
- def addq():
- print("Question?")
- newq = input("> ")
- newq = str(newq)
- return(newq)
- def adda():
- print("Answer?")
- newa = input("> ")
- newa = str(newa)
- return(newa)
- def test():
- x = 0
- s = slice(x)
- print(questions[s])
- testq = input()
- def menu():
- print("1 - Add question")
- print("2 - Take test")
- start = input()
- if start == "1":
- questions.append(addq())
- answers.append(adda())
- menu()
- if start == "2":
- if len(questions) == 0:
- print("No questions found...")
- menu()
- if len(questions) > 0:
- test()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement