- At the top of the module use triple quotes to document things instead of using comments. At the top level it will also act as a docstring for your module.
- Use
random.choiceon the iterable instead of getting a random int first and then using it get an from iterable. if answer == "Y" or answer == "y"etc can be replaced withif answer.lower() == "y".- Use better variables names, for example
aandbinFunRun(a, b)doesn't make any sense. - Use new style string formatting instead of the old sprintf basesbased syntax. Or better join
str.joinin your case if you want to merge bunch of items. - Your code has too many PEP 8 issues as per PEP8 online tool. You should check PEP 8 and use extensions like
flake8,pylintetc to catch those.