Can anyone guide me to simplify this primitive entry level code / Rock, paper and scissors
Hey everyone. I just started learning python and made a rock, scissors and paper game by my own with my limited basic level knowledge. But I feel like the codes should be much more simple than this one. Need your guidence to simplify. import random ai_list = ("rock", "scissors", "paper") end_game = False lose_count = 0 win_count = 0 while lose_count < 3: ai_decision = (ai_list[random.randint(1, 3)]) user_decision = input("rock, scissors or paper ? :").lower() while ai_decision == "rock": if user_decision == "rock": print(f'computer:{ai_decision}, user: {user_decision}. Draw game.') break elif user_decision == "scissors": print(f'computer:{ai_decision}, user: {user_decision}. You lost.') lose_count += 1 break elif user_decision == "paper": print(f'computer:{ai_decision}, user: {user_decision}. You won.') win_count += 1 break while ai_decision == "scissors": if user_decision == "rock": print(f'computer:{ai_decision}, user: {user_decision}. You won.') win_count += 1 break elif user_decision == "scissors": print(f'computer:{ai_decision}, user: {user_decision}. Draw game.') break elif user_decision == "paper": print(f'computer:{ai_decision}, user: {user_decision}. You lost.') lose_count += 1 break while ai_decision == "paper": if user_decision == "rock": print(f'computer:{ai_decision}, user: {user_decision}. You lost.') lose_count += 1 break elif user_decision == "scissors": print(f'computer:{ai_decision}, user: {user_decision}. You won.') win_count += 1 break elif user_decision == "paper": print(f'computer:{ai_decision}, user: {user_decision}. Draw game.') break else: print("