How to stop while loop with 2 conditions
Hello everyone! I would like to know how can I stop a while loop when one of my condition get True, instead using the break coomand. Here is my code and I would like to stop my while loop when player 1 or player 2 get 3 victories first. (As I'm quite new here, I'm not looking for a fancy solution, since Ive just study till the while loop topic :p) Thank you! --------------------------------------- #ROCK-PAPER-SCISSORS #learning the while loop import random num1 = random.randint (1,3) #1 - Rock, 2 - Paper, 3 - Scissors num2 = random.randint (1,3) w1 = 0 # Victories Counter for Player 1 w2 = 0 # Victories Counter for Player 2 print('Welcome to Rock-Paper-Scissors Game') while w1 < 3 or w2 < 3: if num1 == 1 and num2 == 1: print ('\nPlayer 1 - Rock') print ('Player 2 - Rock') print ('It is a Draw') #nobody receive a victory w1 += 0 w2 += 0 if w1 == 3: break elif w2 ==3: break else: