# Snake Water Game import random print("Welcome to Snake Water Game!!!!!!!!!") list1 = ['s','w','g'] computer = 0 user = 0 inp0 = int(input('Enter The number Of Chances :')) while True: choice = random.choice(list1) inp1 = input("Enter Your Choice 's' for Snake , 'w' for Water, 'g' for gun :") if inp1 == choice: print(f'Your Choice = {inp1}\nComputer Choice = {choice}\nSame!!!!!!!') elif inp1 == 's' and choice == 'w': print(f"Your Choice = Snake\nComputer Choice = Water\nWON!!!!!!") user += 1 elif inp1 == 's' and choice == 'g': print(f"Your Choice = Snake\nComputer Choice = Gun\nLOST!!!!!!") computer += 1 elif inp1 == 'w' and choice == 's': print(f"Your Choice = Water\nComputer Choice = Snake\nLOST!!!!!!") computer += 1 elif inp1 == 'w' and choice == 'g': print(f"Your Choice = Water\nComputer Choice = Gun\nWON!!!!!!") user += 1 elif inp1 == 'g' and choice == 'w': print(f"Your Choice = Gun\nComputer Choice = Water\nLOST!!!!!!") computer += 1 elif inp1 == 'g' and choice == 's': print(f"Your Choice = Gun\nComputer Choice = Snake\nWON!!!!!!") user += 1 print(f"Computer = {computer}\nYou = {user}") if user == inp0 print("CONGRACTULATIONS \nYOU WON!!!!!!!!!!!!!!!!!") break elif computer == inp0: print("TRY AGAIN/nYOU LOST................") break