René's URL Explorer Experiment


Title: Make Your First Python Game: Rock, Paper, Scissors! – Real Python

Open Graph Title: Make Your First Python Game: Rock, Paper, Scissors! – Real Python

Description: In this tutorial, you'll learn to program rock paper scissors in Python from scratch. You'll learn how to take in user input, make the computer choose a random action, determine a winner, and split your code into functions.

Open Graph Description: In this tutorial, you'll learn to program rock paper scissors in Python from scratch. You'll learn how to take in user input, make the computer choose a random action, determine a winner, and split your code into functions.

Mail addresses
?subject=Python article for you&body=Make Your First Python Game: Rock, Paper, Scissors! on Real Python https://realpython.com/python-rock-paper-scissors/

Opengraph URL: https://realpython.com/python-rock-paper-scissors/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "Make Your First Python Game: Rock, Paper, Scissors!",
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/Rock-Paper-Scissors-Make-Your-First-Python-Game_Watermarked.107e6ff4060c.jpg",
    "width": 1920,
    "height": 1080
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://realpython.com/python-rock-paper-scissors/",
    "lastReviewed": "2023-11-06",
    "author": {
      "@type": "Person",
      "name": "Chris Wilkerson",
      "image": "https://realpython.com/cdn-cgi/image/width=1500,height=1500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/real-python-logo-square.28474fda9228.png",
      "url": "https://realpython.com/team/cwilkerson/",
      "affiliation": {
        "@type": "Organization",
        "@id": "https://realpython.com/#organization",
        "name": "Real Python",
        "url": "https://realpython.com",
        "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
      }
    },
    "reviewedBy": [
      {
        "@type": "Person",
        "name": "Aldren Santos",
        "image": "https://realpython.com/cdn-cgi/image/width=500,height=500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Aldren_Santos_Real_Python.6b0861d8b841.png",
        "url": "https://realpython.com/team/asantos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "David Amos",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/me-small.f5f49f1c48e1.jpg",
        "url": "https://realpython.com/team/damos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Geir Arne Hjelle",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/gahjelle.470149ee709e.jpg",
        "url": "https://realpython.com/team/gahjelle/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Joanna Jablonski",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/jjablonksi-avatar.e37c4f83308e.jpg",
        "url": "https://realpython.com/team/jjablonski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Jacob Schmitt",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/profile-small_js.2f4d0d8da1ca.jpg",
        "url": "https://realpython.com/team/jschmitt/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    ]
  },
  "datePublished": "2021-01-18T14:00:00+00:00",
  "dateModified": "2023-11-06T16:41:45.887977+00:00",
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "author": {
    "@type": "Person",
    "name": "Chris Wilkerson",
    "image": "https://realpython.com/cdn-cgi/image/width=1500,height=1500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/real-python-logo-square.28474fda9228.png",
    "url": "https://realpython.com/team/cwilkerson/",
    "affiliation": {
      "@type": "Organization",
      "@id": "https://realpython.com/#organization",
      "name": "Real Python",
      "url": "https://realpython.com",
      "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
    }
  },
  "description": "In this tutorial, you'll learn to program rock paper scissors in Python from scratch. You'll learn how to take in user input, make the computer choose a random action, determine a winner, and split your code into functions."
}

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/Rock-Paper-Scissors-Make-Your-First-Python-Game_Watermarked.107e6ff4060c.jpg
og:imagehttps://files.realpython.com/media/Rock-Paper-Scissors-Make-Your-First-Python-Game_Watermarked.107e6ff4060c.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/python-rock-paper-scissors/
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/python-rock-paper-scissors/
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Fpython-rock-paper-scissors%2F
Browse Topicshttps://realpython.com/tutorials/all/
Guided Learning Pathshttps://realpython.com/learning-paths/
Basicshttps://realpython.com/search?level=basics
Intermediatehttps://realpython.com/search?level=intermediate
Advancedhttps://realpython.com/search?level=advanced
aihttps://realpython.com/tutorials/ai/
algorithmshttps://realpython.com/tutorials/algorithms/
apihttps://realpython.com/tutorials/api/
best-practiceshttps://realpython.com/tutorials/best-practices/
careerhttps://realpython.com/tutorials/career/
communityhttps://realpython.com/tutorials/community/
databaseshttps://realpython.com/tutorials/databases/
data-sciencehttps://realpython.com/tutorials/data-science/
data-structureshttps://realpython.com/tutorials/data-structures/
data-vizhttps://realpython.com/tutorials/data-viz/
devopshttps://realpython.com/tutorials/devops/
djangohttps://realpython.com/tutorials/django/
dockerhttps://realpython.com/tutorials/docker/
editorshttps://realpython.com/tutorials/editors/
flaskhttps://realpython.com/tutorials/flask/
front-endhttps://realpython.com/tutorials/front-end/
gamedevhttps://realpython.com/tutorials/gamedev/
guihttps://realpython.com/tutorials/gui/
machine-learninghttps://realpython.com/tutorials/machine-learning/
newshttps://realpython.com/tutorials/news/
numpyhttps://realpython.com/tutorials/numpy/
projectshttps://realpython.com/tutorials/projects/
pythonhttps://realpython.com/tutorials/python/
stdlibhttps://realpython.com/tutorials/stdlib/
testinghttps://realpython.com/tutorials/testing/
toolshttps://realpython.com/tutorials/tools/
web-devhttps://realpython.com/tutorials/web-dev/
web-scrapinghttps://realpython.com/tutorials/web-scraping/
Table of Contentshttps://realpython.com/python-rock-paper-scissors/#toc
What Is Rock Paper Scissors?https://realpython.com/python-rock-paper-scissors/#what-is-rock-paper-scissors
Play a Single Game of Rock Paper Scissors in Pythonhttps://realpython.com/python-rock-paper-scissors/#play-a-single-game-of-rock-paper-scissors-in-python
Take User Inputhttps://realpython.com/python-rock-paper-scissors/#take-user-input
Make the Computer Choosehttps://realpython.com/python-rock-paper-scissors/#make-the-computer-choose
Determine a Winnerhttps://realpython.com/python-rock-paper-scissors/#determine-a-winner
Play Several Games in a Rowhttps://realpython.com/python-rock-paper-scissors/#play-several-games-in-a-row
Describe an Action With enum.IntEnumhttps://realpython.com/python-rock-paper-scissors/#describe-an-action-with-enumintenum
The Flow(chart) of Your Programhttps://realpython.com/python-rock-paper-scissors/#the-flowchart-of-your-program
Split Your Code Into Functionshttps://realpython.com/python-rock-paper-scissors/#split-your-code-into-functions
Rock Paper Scissors … Lizard Spockhttps://realpython.com/python-rock-paper-scissors/#rock-paper-scissors-lizard-spock
Conclusionhttps://realpython.com/python-rock-paper-scissors/#conclusion
https://realpython.com/feedback/survey/article/python-rock-paper-scissors/liked/?from=article-sidebar
https://realpython.com/feedback/survey/article/python-rock-paper-scissors/disliked/?from=article-sidebar
Rock, Paper, Scissors With Python: A Command Line Game 26m · 5 lessons https://realpython.com/courses/python-rock-paper-scissors-game/
Chris Wilkersonhttps://realpython.com/python-rock-paper-scissors/#author
https://realpython.com/python-rock-paper-scissors/#reader-comments
basicshttps://realpython.com/tutorials/basics/
gamedevhttps://realpython.com/tutorials/gamedev/
projectshttps://realpython.com/tutorials/projects/
What Is Rock Paper Scissors?https://realpython.com/python-rock-paper-scissors/#what-is-rock-paper-scissors
Play a Single Game of Rock Paper Scissors in Pythonhttps://realpython.com/python-rock-paper-scissors/#play-a-single-game-of-rock-paper-scissors-in-python
Take User Inputhttps://realpython.com/python-rock-paper-scissors/#take-user-input
Make the Computer Choosehttps://realpython.com/python-rock-paper-scissors/#make-the-computer-choose
Determine a Winnerhttps://realpython.com/python-rock-paper-scissors/#determine-a-winner
Play Several Games in a Rowhttps://realpython.com/python-rock-paper-scissors/#play-several-games-in-a-row
Describe an Action With enum.IntEnumhttps://realpython.com/python-rock-paper-scissors/#describe-an-action-with-enumintenum
The Flow(chart) of Your Programhttps://realpython.com/python-rock-paper-scissors/#the-flowchart-of-your-program
Split Your Code Into Functionshttps://realpython.com/python-rock-paper-scissors/#split-your-code-into-functions
Rock Paper Scissors … Lizard Spockhttps://realpython.com/python-rock-paper-scissors/#rock-paper-scissors-lizard-spock
Conclusionhttps://realpython.com/python-rock-paper-scissors/#conclusion
Remove adshttps://realpython.com/account/join/
Rock, Paper, Scissors With Python: A Command Line Gamehttps://realpython.com/courses/python-rock-paper-scissors-game/
rock paper scissorshttps://en.wikipedia.org/wiki/Rock_paper_scissors
5 Thoughts On Python Masteryhttps://realpython.com/bonus/python-mastery-course/
https://realpython.com/python-rock-paper-scissors/#what-is-rock-paper-scissors
hand gamehttps://en.wikipedia.org/wiki/Hand_game
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-rock-paper-scissors/#play-a-single-game-of-rock-paper-scissors-in-python
importhttps://realpython.com/python-import/
https://realpython.com/python-rock-paper-scissors/#take-user-input
Taking input from a userhttps://realpython.com/python-input-output/
https://realpython.com/python-rock-paper-scissors/#make-the-computer-choose
strategyhttps://arstechnica.com/science/2014/05/win-at-rock-paper-scissors-by-knowing-thy-opponent/
Random selectionshttps://realpython.com/python-random/
pseudorandomhttps://en.wikipedia.org/wiki/Pseudorandom_number_generator
printhttps://realpython.com/python-print/
https://realpython.com/python-rock-paper-scissors/#determine-a-winner
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-rock-paper-scissors/#play-several-games-in-a-row
while loophttps://realpython.com/python-while-loop/
https://realpython.com/python-rock-paper-scissors/#describe-an-action-with-enumintenum
numbershttps://realpython.com/python-numbers/
convert the return value to an integerhttps://realpython.com/convert-python-string-to-int/
namespaceshttps://realpython.com/python-namespaces-scope/
Build Enumerations of Constants With Python’s Enumhttps://realpython.com/python-enum/
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-rock-paper-scissors/#the-flowchart-of-your-program
conditional logichttps://realpython.com/python-conditional-statements/
https://files.realpython.com/media/rps-flowchart-single-game.214891bb82d6.png
https://files.realpython.com/media/rps-flowchart-repeated-games.f78a64553925.png
https://realpython.com/python-rock-paper-scissors/#split-your-code-into-functions
create a functionhttps://realpython.com/defining-your-own-python-function/
returnshttps://realpython.com/python-return-statement/
list comprehensionhttps://realpython.com/list-comprehension-python/
https://files.realpython.com/media/rps-diagram-with-check.4397a039b248.png
Python Exceptions: An Introductionhttps://realpython.com/python-exceptions/
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-rock-paper-scissors/#rock-paper-scissors-lizard-spock
The Big Bang Theoryhttps://en.wikipedia.org/wiki/The_Big_Bang_Theory
https://files.realpython.com/media/rps-lizardspock.88cf9623a6f0.png
dictionaryhttps://realpython.com/python-dicts/
membership operatorhttps://docs.python.org/3/reference/expressions.html#membership-test-operations
https://realpython.com/python-rock-paper-scissors/#conclusion
hangman gamehttps://realpython.com/python-hangman/
https://realpython.com/feedback/survey/article/python-rock-paper-scissors/liked/?from=article-footer
https://realpython.com/feedback/survey/article/python-rock-paper-scissors/disliked/?from=article-footer
Rock, Paper, Scissors With Python: A Command Line Gamehttps://realpython.com/courses/python-rock-paper-scissors-game/
https://realpython.com/team/cwilkerson/
» More about Chrishttps://realpython.com/team/cwilkerson/
https://realpython.com/team/asantos/
Aldrenhttps://realpython.com/team/asantos/
https://realpython.com/team/damos/
Davidhttps://realpython.com/team/damos/
https://realpython.com/team/gahjelle/
Geir Arnehttps://realpython.com/team/gahjelle/
https://realpython.com/team/jjablonski/
Joannahttps://realpython.com/team/jjablonski/
https://realpython.com/team/jschmitt/
Jacobhttps://realpython.com/team/jschmitt/
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-rock-paper-scissors
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-rock-paper-scissors
https://realpython.com/feedback/survey/article/python-rock-paper-scissors/liked/?from=article-comments
https://realpython.com/feedback/survey/article/python-rock-paper-scissors/disliked/?from=article-comments
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frealpython.com%2Fpython-rock-paper-scissors%2F
Twitterhttps://twitter.com/intent/tweet/?text=Interesting%20Python%20article%20on%20%40realpython%3A%20Make%20Your%20First%20Python%20Game%3A%20Rock%2C%20Paper%2C%20Scissors%21&url=https%3A%2F%2Frealpython.com%2Fpython-rock-paper-scissors%2F
Blueskyhttps://bsky.app/intent/compose?text=Interesting%20Python%20article%20on%20%40realpython.com%3A%20Make%20Your%20First%20Python%20Game%3A%20Rock%2C%20Paper%2C%20Scissors%21%20https%3A%2F%2Frealpython.com%2Fpython-rock-paper-scissors%2F
Facebookhttps://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frealpython.com%2Fpython-rock-paper-scissors%2F
Get tips for asking good questionshttps://realpython.com/python-beginner-tips/#tip-9-ask-good-questions
get answers to common questions in our support portalhttps://support.realpython.com
Real Python Community Chathttps://realpython.com/community/
“Office Hours” Live Q&A Sessionhttps://realpython.com/office-hours/
basicshttps://realpython.com/tutorials/basics/
gamedevhttps://realpython.com/tutorials/gamedev/
projectshttps://realpython.com/tutorials/projects/
Rock, Paper, Scissors With Python: A Command Line Gamehttps://realpython.com/courses/python-rock-paper-scissors-game/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-rock-paper-scissors
https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-rock-paper-scissors%2F
Continue »https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-rock-paper-scissors%2F
Sign-Inhttps://realpython.com/account/login/?next=/python-rock-paper-scissors/
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.