Re: [Tutor] Running a loop

2011-10-16 Thread Peter Otten
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. > >

Re: [Tutor] Running a loop

2011-10-15 Thread Steven D'Aprano
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

Re: [Tutor] Running a loop

2011-10-15 Thread Robert Sjoblom
> 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

Re: [Tutor] Running a loop

2011-10-15 Thread Alan Gauld
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