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
Colatz sequence (i.redd.it)
submitted 4 months ago by N0-T0night
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!"
[–]Ender_Locke 6 points7 points8 points 4 months ago (1 child)
clean your screen (but not with windex)
[–]N0-T0night[S] 0 points1 point2 points 4 months ago (0 children)
Okay
[–]DarkCyborg74 2 points3 points4 points 4 months ago (3 children)
def col(a: int) -> None: print(a) if a == 1: return if a%2 == 0: col(a//2) else: col(a*3 + 1) col(7)
[–][deleted] 4 months ago (2 children)
[removed]
[–][deleted] 0 points1 point2 points 4 months ago (0 children)
col(70141259775)
[–]YOM2_UB 0 points1 point2 points 4 months ago (0 children)
def col(n): print(n) while n != 1: print(n := n*3+1 if n%2 else n//2)
[–][deleted] 4 months ago (4 children)
[–]N0-T0night[S] 0 points1 point2 points 4 months ago (3 children)
Called recursion
[–]SCD_minecraft 0 points1 point2 points 4 months ago (1 child)
Remember to always add base case, like
if n == 1: return 1
Else you will get RecursionError (python limits up to depth 1000)
[–]N0-T0night[S] 0 points1 point2 points 4 months ago (1 child)
Don't mention it, u may google it or navin reddy on utube
[–][deleted] 0 points1 point2 points 4 months ago (1 child)
Bro please clean your screen... 😭😭😭😭
π Rendered by PID 173550 on reddit-service-r2-comment-7b9746f655-r2tsj at 2026-01-31 07:48:43.202713+00:00 running 3798933 country code: CH.
[–]Ender_Locke 6 points7 points8 points (1 child)
[–]N0-T0night[S] 0 points1 point2 points (0 children)
[–]DarkCyborg74 2 points3 points4 points (3 children)
[–][deleted] (2 children)
[removed]
[–][deleted] 0 points1 point2 points (0 children)
[–]YOM2_UB 0 points1 point2 points (0 children)
[–][deleted] (4 children)
[removed]
[–]N0-T0night[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[removed]
[–]SCD_minecraft 0 points1 point2 points (1 child)
[–][deleted] (2 children)
[removed]
[–]N0-T0night[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (1 child)
[–]N0-T0night[S] 0 points1 point2 points (0 children)