Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

53
Rock, paper, scissors game
Post Flair (click to view more posts with a particular flair)
Post Body

Hey everyone. I just started learning Python3 a couple days ago and I wrote a 21 line code for a rock, paper, scissors game and I don't have many friends to show so here ya go:

# Python Rock-Paper-Scissor Game
# By Custard Jesus
# KristiSoko, for Reddit ^_^
import random
option_list = ['Rock', 'Paper', 'Scissor']
option = random.choice(option_list) #Choose random string from list
user = str(input("""
Pick one:
Rock
Paper
Scissor
"""))
if option == user:
    print("That's a tie.")
elif option == 'Rock':
    print(f"I chose {option}!")
elif option == 'Paper':
    print(f"I chose {option}!")
elif option == 'Scissor':
    print(f"I chose {option}!")
else:
    print("Invalid command")
# End Program!

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
53,675
Link Karma
31,744
Comment Karma
20,541
Profile updated: 6 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago