First you must learn to return values or to append to list or add to dictionary the values. playerQty etc is local variables in function. See my post of Dice throwing game variable players and throws for my preferred form of input by function (of course you need to adapt the prompt form), which is able to deal with wrong types of input.
I would recommend to forget the input form in Python2, so that is why I always overwrite it to use only raw_input style, but name it input. That way my program runs in both Python2 and Python3.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
The 19th hole on the golf course is the bar in the club house!
sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212