[Tutor] Rock, Paper, Scissors

Ismael Garrido ismaelgf at adinet.com.uy
Sat Aug 12 08:05:10 CEST 2006


Luke Paireepinart escribió:
> Robert Wierschke wrote:
>   
>> the else part can't have a condition!!!
>> _______________________________________________
>> Tutor maillist  -  Tutor at python.org
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>   
>>     
> Are you referring to Alan's post?
> You should have included the original text in your reply so we would 
> know what you're talking about.
He wasn't. From the original post:

	elif human.choice == 'rocks' and computer.choice ==
'scissors':
		print "Human wins!"
		human.points = human.points + 1
	else human.choice == 'scissors' and computer.choice
== 'rocks':
		print "Computer wins!"
		computer.points = computer.points + 1



Ismael


More information about the Tutor mailing list