quizzer_vocab
This is a program I made to study for biology vocabulary tests. It’s useful for any kind of vocabulary test and it’s been helpful throughout high school. It reads a text file in the format:
“word-this is the definition
word2-this is the definition”
import random list_of_stuff = [] f = open("material.txt") lines = f.readlines() for line in lines: double = line.split("-") list_of_stuff.append(double) random.shuffle(list_of_stuff) input("press enter to begin") i=1 for stuff_thing in list_of_stuff: print("%i. %s"%(i,stuff_thing[0])) i+=1 input("press enter to show answers") i=1 for stuff_thing in list_of_stuff: print("%i. %s"%(i,stuff_thing[1])) i+=1 input()