Aug-03-2018, 07:36 AM
hi there super beginner here and trying out the rock paper scissors game question using python
just the first portion is posted since the rest should be similar
however it seems that the while loop first line is not even activated, why is this so?
thank u very much in advance!!!
just the first portion is posted since the rest should be similar
however it seems that the while loop first line is not even activated, why is this so?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
first = input ( "rock paper scissors?: " ) second = input ( "rock paper scissors?: " ) rock = 5 paper = 10 scissors = 15 print (rock) while first = = 5 : print ( "activated" ) if second = = 15 : print ( "congrats player 1" ) break elif second = = 10 : print ( "congrats player 2" ) break else : print ( "draw" ) continue |