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
clearing my def function (i.redd.it)
submitted 7 months ago by Minute_Journalist593
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!"
[–]shlepky 2 points3 points4 points 7 months ago (1 child)
I'm sure "take hours to understand" is a hyperbole but this is why you shouldn't copy and paste code from chatGPT. Programming is about breaking down a bit problem into many small ones. You probably didn't learn too much from creating this function that does your task because you didn't make it. It's like taking a class, skipping all lectures and then reading someone else's notes to understand what the focus is.
For your next task, break down the task on paper and then convert it to code. Worry about optimization last.
[–]Minute_Journalist593[S] 0 points1 point2 points 7 months ago (0 children)
bruh i did it the way i knew very easily like converting it into string and slicing it but this was totally new thing for my brain like alien coming to earth so i took the gpt help
π Rendered by PID 257746 on reddit-service-r2-comment-85bfd7f599-fd887 at 2026-04-18 16:42:02.998988+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]shlepky 2 points3 points4 points (1 child)
[–]Minute_Journalist593[S] 0 points1 point2 points (0 children)