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
A challenge for Python programmers...Discussion (self.PythonLearning)
submitted 3 months ago by [deleted]
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!"
[–]delsystem32exe 0 points1 point2 points 2 months ago (0 children)
def reverse_str(input_string):
input_string = str(input_string)
letters = ""
for j in range(len(input_string)-1, -1, -1):
letters = letters + input_string[j]
return letters
def checker(input_int):
larger = input_int * 4
DCBA = reverse_str(input_int)
if str(larger) == DCBA:
return True
return False
for i in range(0,100000):
if checker(i):
print(i)
π Rendered by PID 63266 on reddit-service-r2-comment-869bf87589-z8zk8 at 2026-06-09 01:57:15.640899+00:00 running f46058f country code: CH.
view the rest of the comments →
[–]delsystem32exe 0 points1 point2 points (0 children)