Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Qlib = dict()
- Qlib["Apple"]="green"
- Qlib["Orange"]="orange"
- Qlib["Banana"]="yellow"
- Qlib["Strawberry"]="red"
- def Qshuffle(self):
- for x in range(1):
- choices = random.sample(list(Qlib),4)
- random_fruit = random.choice(choices)
- main_typed = "Which fruit is the following colour...??nnn"
- print('{0} {1}nn'.format(main_typed, random_fruit.center(85)))
- print('Choices:n' + "n".join([Qlib[x] for x in choices]))
- Options = ['Option [a]','Option [b]','Option [c]','Option [d]']
- for op in Options:
- print (op.rjust(38))
- answer = input("Enter answer a,b,c, or d")
Add Comment
Please, Sign In to add comment