@@ -0,0 +1,294 @@
+def yesno(prompt='? '):%0A%09# raw_input returns the empty string for %22enter%22%0A%09yes = set(%5B'yes','y', 'ye', ''%5D)%0A%09no = set(%5B'no','n'%5D)%0A%0A%09choice = input(prompt).lower()%0A%09if choice in yes:%0A%09%09return True%0A%09elif choice in no:%0A%09%09return False%0A%09else:%0A%09%09sys.stdout.write(%22Please respond with 'yes' or 'no'%22)%0A

Add userinput module.