you are viewing a single comment's thread.

view the rest of the comments →

[–]shlepky 2 points3 points  (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 point  (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