Jason Barry wrote:
> I am using Windows 7 and python 3.1. This is a block from a slot machine
> code. It takes the random generated words and indicates if it wins or
> loses. I can't figure out why it wants to print the last print statement
> 'Loser' no matter if the elif statements are true.
>
>
Jason Barry wrote:
I am using Windows 7 and python 3.1. This is a block from a slot machine
code. It takes the random generated words and indicates if it wins or loses.
I can't figure out why it wants to print the last print statement 'Loser' no
matter if the elif statements are true.
Alan has
> Subject: [Tutor] Running a loop
> I am using Windows 7 and python 3.1. This is a block from a slot machine
> code. It takes the random generated words and indicates if it wins or loses.
> I can't figure out why it wants to print the last print statement 'Loser' no
> matter if the elif statements
On 15/10/11 16:58, Jason Barry wrote:
wheel1=['ZOMBIE', 'WITCH', 'CAT', 'GHOST',
'CANDY','PUMPKIN','PUMPKIN','CANDY', 'GHOST','CANDY']
def checkwin (wheel1index, wheel2index, wheel3index):
if wheel1index=='zombie' and wheel2index=='zombie' and wheel3index==
'zombie':
The values are define