Toptube Video Search Engine



Title:ROCK PAPER SCISSORS game in Python 🗿
Duration:09:29
Viewed:123,125
Published:14-11-2022
Source:Youtube

#python #tutorial #course Python tutorial for beginners rock paper scissors import random options = ("rock", "paper", "scissors") running = True while running: player = None computer = random.choice(options) while player not in options: player = input("Enter a choice (rock, paper, scissors): ") print(f"Player: {player}") print(f"Computer: {computer}") if player == computer: print("It's a tie!") elif player == "rock" and computer == "scissors": print("You win!") elif player == "paper" and computer == "rock": print("You win!") elif player == "scissors" and computer == "paper": print("You win!") else: print("You lose!") if not input("Play again? (y/n): ").lower() == "y": running = False print("Thanks for playing!")



SHARE TO YOUR FRIENDS


Download Server 1


DOWNLOAD MP4

Download Server 2


DOWNLOAD MP4

Alternative Download :