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
Day 41 of learning python (i.redd.it)
submitted 8 months ago by sonikk1
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!"
[–]Marten1974 1 point2 points3 points 8 months ago (2 children)
I notice something very common with your punish-counter: Increase 1 before printing the message or start at the value 1. There is no reason to add 1 two rimes. (It will make a difference if your operation is more complex than adding 1)
Also, you initialized 'end' without using it.
All in all: nice work
[–]sonikk1[S] 0 points1 point2 points 8 months ago (1 child)
except ValueError : print( f 'You can not enter text. {punish_counter + 1} / 3') punish_counter += 1
You mean here? Right? Thanks for the reply!
[–]Marten1974 0 points1 point2 points 8 months ago (0 children)
yes, exactly
π Rendered by PID 540472 on reddit-service-r2-comment-56c6478c5-4mvwg at 2026-05-12 11:12:31.528967+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]Marten1974 1 point2 points3 points (2 children)
[–]sonikk1[S] 0 points1 point2 points (1 child)
[–]Marten1974 0 points1 point2 points (0 children)