rock paper sizzors game! revised! /u/Upper-Abroad-5868 Python Education

hello everybody! I’ve made a rock, paper, sizzors game! This is made a bit diffrent from last time, what do you guys think?

import random # This will an ordered tuple; will not change position options = ("rock","paper","sizzor") computer = random.choice(options) is_running = True you = '' while is_running : you = input("rock, paper, or sizzor?:").lower().strip() if you not in options: print(f"{you} is NOT in options! try again!") else: print(f"PLAYER: {you} | COMPUTER: {computer}") if you == computer: print("TIE") elif you == "rock" and computer == "paper": print("YOU LOSE!") elif you == "paper" and computer == "sizzor": print("YOU LOSE!") elif you == "sizzor" and computer == "rock": print("YOU LOSE!") else: print("YOU WIN!") is_running = input("Wanna play again? press 1 for yess and 2 for no") == "1" 

submitted by /u/Upper-Abroad-5868
[link] [comments]

​r/learnpython hello everybody! I’ve made a rock, paper, sizzors game! This is made a bit diffrent from last time, what do you guys think? import random # This will an ordered tuple; will not change position options = (“rock”,”paper”,”sizzor”) computer = random.choice(options) is_running = True you = ” while is_running : you = input(“rock, paper, or sizzor?:”).lower().strip() if you not in options: print(f”{you} is NOT in options! try again!”) else: print(f”PLAYER: {you} | COMPUTER: {computer}”) if you == computer: print(“TIE”) elif you == “rock” and computer == “paper”: print(“YOU LOSE!”) elif you == “paper” and computer == “sizzor”: print(“YOU LOSE!”) elif you == “sizzor” and computer == “rock”: print(“YOU LOSE!”) else: print(“YOU WIN!”) is_running = input(“Wanna play again? press 1 for yess and 2 for no”) == “1” submitted by /u/Upper-Abroad-5868 [link] [comments] 

hello everybody! I’ve made a rock, paper, sizzors game! This is made a bit diffrent from last time, what do you guys think?

import random # This will an ordered tuple; will not change position options = ("rock","paper","sizzor") computer = random.choice(options) is_running = True you = '' while is_running : you = input("rock, paper, or sizzor?:").lower().strip() if you not in options: print(f"{you} is NOT in options! try again!") else: print(f"PLAYER: {you} | COMPUTER: {computer}") if you == computer: print("TIE") elif you == "rock" and computer == "paper": print("YOU LOSE!") elif you == "paper" and computer == "sizzor": print("YOU LOSE!") elif you == "sizzor" and computer == "rock": print("YOU LOSE!") else: print("YOU WIN!") is_running = input("Wanna play again? press 1 for yess and 2 for no") == "1" 

submitted by /u/Upper-Abroad-5868
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *