Reputation: 39
while scr_1 <= 4 or scr_2 <= 4
:#scr stands for score
The thing happening here is that my while
loop ends only when BOTH scores have reached 5! I want it to end when only one of the above reaches 5! Please help me.
Upvotes: 0
Views: 274
Reputation: 11
turn your 'or' to an 'and'
the reason for this is because you want the loop to only continue if both scr_1 and scr_2 is less than or equal to 4.
Upvotes: 1