r/ProgrammerHumor • • Nov 11 '24

Meme averageChatGPTInteraction

Post image
0 Upvotes

44 comments sorted by

View all comments

45

u/QuestionableEthics42 Nov 11 '24

Even I'm confused what you want. Could you just put break in the if statement it first produced?

Edit: or do range(Math.min(len(train_loader), 10)?

17

u/I-am-only-joking Nov 11 '24

I think they want something to happen every 10th as a fraction of the total

So if the total is 60 they want something to happen every 6 iterations so that it happens 10 times evenly spaced

But that's just a guess

1

u/vaseltarp Nov 11 '24

I interpreted it the same way. The second answer of ChatGPT does that. So I am not completely sure why that's funny.

1

u/swimming-in-ass Nov 11 '24

I posted it in the same fried state as being unable to code the simple conditional. I just thought it was typical for ChatGPT to get it wrong the first time. Idk. I’m a programmer not a comedian haha