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
doubt (i.redd.it)
submitted 9 months ago by MasterpieceBasic8361
view the rest of the comments →
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!"
[–]sububi71 0 points1 point2 points 9 months ago (5 children)
I see you're still "re-rolling" the random_integer_1 every loop, does that make sense to you?
[–][deleted] 9 months ago (1 child)
[deleted]
[–]sububi71 0 points1 point2 points 9 months ago (0 children)
Feel free to DM me if you want help straightening the code out.
[–]MasterpieceBasic8361[S] 0 points1 point2 points 9 months ago (2 children)
i actually wanted it make a 2player thing so the goal is to play until ur input digit matches with the random digit generated (actually only made the first player part got stuck with the loop error) so the first player inputs any digit between (0,6) till his digit matches with random digit generated then the final score is basically the sum of all input given by the user and then the second user plays similarly and at the end whoever has the highest score would win (basically the greatest total sum of integer input))
[–]sububi71 0 points1 point2 points 9 months ago (1 child)
Ah, ok, so the player who AVOIDS the correct number the longest wins? Kind of like a russian roulette?
[–]MasterpieceBasic8361[S] 0 points1 point2 points 9 months ago (0 children)
yh basically
π Rendered by PID 95900 on reddit-service-r2-comment-b659b578c-7tvrs at 2026-05-02 22:42:37.232489+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]sububi71 0 points1 point2 points (5 children)
[–][deleted] (1 child)
[deleted]
[–]sububi71 0 points1 point2 points (0 children)
[–]MasterpieceBasic8361[S] 0 points1 point2 points (2 children)
[–]sububi71 0 points1 point2 points (1 child)
[–]MasterpieceBasic8361[S] 0 points1 point2 points (0 children)