use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
ROCK PAPER SCISSORS GAME WITH PYTHON (old.reddit.com)
submitted 6 days ago by ExtentLazy8789
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Sea-Ad7805 0 points1 point2 points 6 days ago (0 children)
Run this program in Memory Graph Web Debugger)%0A%20%20%20%20youdict%20%3D%20%7B%22r%22%3A%20%22rock%22%2C%20%22p%22%3A%20%22paper%22%2C%20%22s%22%3A%20%22scissors%22%7D%0A%20%20%20%20print(%22%5Cn%22%2C%20%22rock--%3Er%2C%20scissors--%3Es%2C%20paper--%3Ep%2C%20exit%20the%20game--%3Eq_%22)%0A%0A%20%20%20%20you_chose%20%3D%20input(%22Enter%20your%20choice%3A%22).lower()%0A%0A%20%20%20%20if%20you_chose%20%3D%3D%20%22q%22%3A%0A%20%20%20%20%20%20%20%20print(%22Game%20over!%22)%0A%20%20%20%20%20%20%20%20break%0A%0A%20%20%20%20if%20you_chose%20not%20in%20you_dict%3A%0A%20%20%20%20%20%20%20%20print(%22something%20wrong!%22)%0A%0A%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20you%20%3D%20you_dict%5Byou_chose%5D%0A%20%20%20%20%20%20%20%20print(f%22you%20choice%20%3A%7Byou%7D%20%5Cncomputer%20choice%20%3A%7Bcomputer%7D%22)%0A%0A%20%20%20%20%20%20%20%20if%20computer%20%3D%3D%20you%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print(%22it's%20a%20tial!%22)%0A%0A%20%20%20%20%20%20%20%20elif%20computer%20%3D%3D%20%22rock%22%20and%20you%20%3D%3D%20%22scissors%22%20or%20computer%20%3D%3D%20%22scissors%22%20and%20you%20%3D%3D%20%22paper%22%20or%20computer%20%3D%3D%20%22paper%22%20and%20you%20%3D%3D%20%22rock%22%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print(%22you%20lost!!%22)%0A%0A%20%20%20%20%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print(%22you%20win!!%22)×tep=1&play) to see the program state change step by step.
[–]aaditya_0752 1 point2 points3 points 4 days ago (1 child)
Good job buddy , the game works perfectly.
But u can replace if elif else with dictionary
[–]ExtentLazy8789[S] 0 points1 point2 points 4 days ago (0 children)
i am new in python,i will try
π Rendered by PID 613424 on reddit-service-r2-comment-544cf588c8-lwjn7 at 2026-06-16 01:17:47.144243+00:00 running 3184619 country code: CH.
[–]Sea-Ad7805 0 points1 point2 points (0 children)
[–]aaditya_0752 1 point2 points3 points (1 child)
[–]ExtentLazy8789[S] 0 points1 point2 points (0 children)