Guest User

Untitled

a guest
Apr 24th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Qlib = dict()
  2. Qlib["Apple"]="green"
  3. Qlib["Orange"]="orange"
  4. Qlib["Banana"]="yellow"
  5. Qlib["Strawberry"]="red"
  6.  
  7. def Qshuffle(self):
  8. for x in range(1):
  9. choices = random.sample(list(Qlib),4)
  10. random_fruit = random.choice(choices)
  11. main_typed = "Which fruit is the following colour...??nnn"
  12.  
  13. print('{0} {1}nn'.format(main_typed, random_fruit.center(85)))
  14. print('Choices:n' + "n".join([Qlib[x] for x in choices]))
  15. Options = ['Option [a]','Option [b]','Option [c]','Option [d]']
  16. for op in Options:
  17. print (op.rjust(38))
  18. answer = input("Enter answer a,b,c, or d")
Add Comment
Please, Sign In to add comment