I\'m new to coding in python and I was filling out some code that required a number of inputs. One thing it asked for was for the program to perform an action if the user pr
Just another tips:
In python you don't need to do equality test for empty string. Instead please use truth value testing. That is more pythonic.
if not coinN:
Truth value testing covers the following test:
Example:
>>> s = ''
>>> if not s:
... print 's is empty'
...
s is empty
>>>