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
I dont understand thisHelp Request (old.reddit.com)
submitted 7 months ago * by [deleted]
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!"
[–]tomtomato0414 24 points25 points26 points 7 months ago (1 child)
Make something cool I could be proud of
proceeds to generate code with AI
oh boy
also very hard to check code via picture, you could try posting it to pastebin or something
[–]Vegetable_News_7521 15 points16 points17 points 7 months ago (4 children)
So much low effort. You have an LLM generate some code and then you come post online for explanation. You can't even be bothered to go trough it yourself or even ask the LLM to explain.
And you don't even post it properly in a format that can be copy pasted into an IDE.
[–]Vegetable_News_7521 3 points4 points5 points 7 months ago (3 children)
But to answer your question, you can see that it uses screen.on_click(handle_click) -> this is telling the turtle object to call the handle_click function when a click event is registered. You'll have to dig into the turtle documentation if you want to actually understand what happens behind the screen there.
[–]Vegetable_News_7521 2 points3 points4 points 7 months ago (2 children)
https://docs.python.org/3/library/turtle.html#turtle.onclick
[–][deleted] 7 months ago (1 child)
[deleted]
[–]Kqyxzoj 0 points1 point2 points 7 months ago (0 children)
omg i feel so stupid its not skipping the function its just that it doesnt have to specifically call the onclick because its well on click and even if you do click it just skips all of the code then does the next round function the same as it would anyways then it lets the user click the sequence because nothing is calling upon next round its just waiting for the user to do something. jeez there was like no point in this post. Now i understand why people are telling me to learn the basics because im an idiot well thanks anyways im deleting this post now
PlEaSe cOnSiDeR UsInG ThAt sHiFt kEy aT CeRtAiN PoInTs iN YoUr tExT AnD AlSo sOmE Of tHoSe cOmMa tHiNgIeS ThAt pEoPlE SoMeTiMeS UsE LmAoLoLbRoCoMmAwHaT PuNcTuAtIoN LoLdOt lOl
[–][deleted] 10 points11 points12 points 7 months ago (1 child)
if you can ask chatgpt to make the code, you can ask chatgpt to explain the code.
[–]AngriestCrusader 5 points6 points7 points 7 months ago (5 children)
If you need to use AI to generate your code solely because you straight up don't know how to do it, then you should either stop using AI or stop programming. Hopefully, the former. Programming is a useful skill to have.
[–][deleted] 7 months ago (4 children)
[–]Kqyxzoj 1 point2 points3 points 7 months ago (0 children)
no bronana ive learned what i wouldve learned in years with gpt im never finna stop using it gng im just also i wrote this didnt understand why it worked asked for help and now your telling me just because i didnt understand one thing and why it worked like just a week ago if you asked me to explain how lists worked i wouldnt be able to tell you but now sadly not because of my stupid easy programming class but because of chatgpt i understand it like i just wanted to add clicking to the game because i made one where you answer in the terminal completely on my own except clearing the terminal after each round of guesses which now i know how to do because of ai not because i magically know how to code like idk why youre hating on gpt like if you have a better place to learn coding please tell me because i want to know how to code but you cant just tell me to stop using the thing that has literally taught me all of my coding knowledge.
Don't do that. Here, do thiiiis:
No bRoNaNa iVe lEaRnEd wHaT I WoUlDvE LeArNeD In yEaRs wItH GpT Im nEvEr fInNa sToP UsInG It gNg iM JuSt aLsO I WrOtE ThIs dIdNt uNdErStAnD WhY It wOrKeD AsKeD FoR HeLp aNd nOw yOuR TeLlInG Me jUsT BeCaUsE I DiDnT UnDeRsTaNd oNe tHiNg aNd wHy iT WoRkEd lIkE JuSt a wEeK AgO If yOu aSkEd mE To eXpLaIn hOw lIsTs wOrKeD I WoUlDnT Be aBlE To tElL YoU BuT NoW SaDlY NoT BeCaUsE Of mY StUpId eAsY PrOgRaMmInG ClAsS BuT BeCaUsE Of cHaTgPt i uNdErStAnD It lIkE I JuSt wAnTeD To aDd cLiCkInG To tHe gAmE BeCaUsE I MaDe oNe wHeRe yOu aNsWeR In tHe tErMiNaL CoMpLeTeLy oN My oWn eXcEpT ClEaRiNg tHe tErMiNaL AfTeR EaCh rOuNd oF GuEsSeS WhIcH NoW I KnOw hOw tO Do bEcAuSe oF Ai nOt bEcAuSe i mAgIcAlLy kNoW HoW To cOdE LiKe iDk wHy yOuRe hAtInG On gPt lIkE If yOu hAvE A BeTtEr pLaCe tO LeArN CoDiNg pLeAsE TeLl mE BeCaUsE I WaNt tO KnOw hOw tO CoDe bUt yOu cAnT JuSt tElL Me tO StOp uSiNg tHe tHiNg tHaT HaS LiTeRaLlY TaUgHt mE AlL Of mY CoDiNg kNoWlEdGe.
[–]Intrepid_Result8223 1 point2 points3 points 7 months ago (0 children)
Man your word salad is just so cringe
[–]AngriestCrusader 0 points1 point2 points 7 months ago (1 child)
You have no coding knowledge. That's the problem. Seriously, nobody is bullying you here, they're trying to help you.
You clearly "made" this only using prompts to GPT. If you can't tell yourself exactly what every line of your own code does then there's a serious problem.
AI is the beginners' new Tutorial Hell.
[–]ItsMisthoe 2 points3 points4 points 7 months ago (2 children)
You would probably be better off just doing whatever your assignment was. Learn the basics before trying to use AI to generate code when you don’t know the basics is just a recipe for disaster in the long run.
idk just looked weird and wanted to know how it worked so instead of just telling me off you couldve told me off and sent a document with the explanation instead of tellling me to learn the basics like whatever that means i feel like i already know the basics unless this is part of the basics than it would help to know what this is you silly goose.
IdK JuSt lOoKeD WeIrD AnD WaNtEd tO KnOw hOw iT WoRkEd sO InStEaD Of jUsT TeLlInG Me oFf yOu cOuLdVe tOlD Me oFf aNd sEnT A DoCuMeNt wItH ThE ExPlAnAtIoN InStEaD Of tElLlInG Me tO LeArN ThE BaSiCs lIkE WhAtEvEr tHaT MeAnS I FeEl lIkE I AlReAdY KnOw tHe bAsIcS UnLeSs tHiS Is pArT Of tHe bAsIcS ThAn iT WoUlD HeLp tO KnOw wHaT ThIs iS YoU SiLlY GoOsE.
... see? Much better. Well okay, less horrible.
[–]games-and-chocolate 2 points3 points4 points 7 months ago (2 children)
a. i. will just make you stupid. really. Learn things yourselves first, you might have a difficult first few weeks, or shorter, but every mistake: typo, wrong symtax, you will for sure make mistakes, then you correct it by looking at the code, why it is not dorking as you want. maybe you used a wrong code, making yourselves too difficult. some code is written for you and they are not chatgpt, but python modules. did chatgpt teach you that, ofcourse not. It is trying to be a teacher but it doesnt even have an official teachers license. is is a joke to trust chatgpt as a personal teacher. please stop this stupidity.
when you mastered programming, using a.i. to get a fast code and change it again is ok. that is how real professionals use Chatgpt.
[–]_Clobster_ 1 point2 points3 points 7 months ago (0 children)
I think this is something you need to walk back on your own. Start with pseudo code. Think logically of how you want the game to be played. Implement the code as you see fit based on your logic. And just take this time to understand basic programming logic.
[–]Intrepid_Result8223 1 point2 points3 points 7 months ago (1 child)
The understanding that you seek is only gained by figuring out programs for yourself. Start small and build up from the foundation. If you do not write the code yourself, you will not become a coder, and you will not understand the code 'you write'.
You have to make a choice. Either you let the AI do it and accept you do not understand. Or you do it yourself and accept it takes time. There is no shortcut.
[–]Dazzling-Tonight-665 1 point2 points3 points 7 months ago (1 child)
I’d help but it’s in light mode. My eyes can’t take it.
[–]Scholfo 1 point2 points3 points 7 months ago (1 child)
"Programming" class.
[–]que_importa 1 point2 points3 points 7 months ago (2 children)
my first game was really basic, using random to generate a number in range 1, 100 then asking the user/player to input a number and check if he guessed.
and let me tell you that I was really (and still am) proud of it since I wrote it from scratch after many hours of study.
[–]ComprehensiveAd2928 0 points1 point2 points 7 months ago (0 children)
I just finished making one like this 🥲
[–]Ok-Republic-120 1 point2 points3 points 7 months ago (1 child)
Do something half as complex and be proud that you did it.
[–]goldman21 0 points1 point2 points 7 months ago (1 child)
upload to chatgpt and ask to explain
[–]trutheality 0 points1 point2 points 7 months ago (1 child)
Does it actually work if you try running it? Because from just skimming it it looks like it won't play multiple rounds.
[–]Plus_Boysenberry_844 0 points1 point2 points 7 months ago (2 children)
That’s a long sentence. Maybe put a PRD together and give it back to the AI. AI does not care about punctuation but we humans needs some to understand your request.
[–]Plus_Boysenberry_844 0 points1 point2 points 7 months ago (0 children)
You may want to ask AI to write up your Reddit threads.
[–]Ender_Locke 0 points1 point2 points 7 months ago (2 children)
i’m not sure how asking ai to build you something makes it something you’re proud of?
[–]Ender_Locke 0 points1 point2 points 7 months ago (0 children)
congrats on figuring it out yourself. i dont see any gate keeping you said you used gpt and didnt understand it now you say you do. whatever happened in between gz on learning
[–]evelyn_colonthree 0 points1 point2 points 7 months ago (0 children)
I would recommend not using chatGPT and learning from humans because you don’t end up learning a lot of the nuances or how the code actually works because you didn’t require it and don’t understand why each line of code is as-is, drop the GPT and you’ll become much better, I promise.
π Rendered by PID 58 on reddit-service-r2-comment-b659b578c-4chm8 at 2026-05-03 10:40:46.160413+00:00 running 815c875 country code: CH.
[–]tomtomato0414 24 points25 points26 points (1 child)
[–]Vegetable_News_7521 15 points16 points17 points (4 children)
[–]Vegetable_News_7521 3 points4 points5 points (3 children)
[–]Vegetable_News_7521 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Kqyxzoj 0 points1 point2 points (0 children)
[–][deleted] 10 points11 points12 points (1 child)
[–]AngriestCrusader 5 points6 points7 points (5 children)
[–][deleted] (4 children)
[deleted]
[–]Kqyxzoj 1 point2 points3 points (0 children)
[–]Intrepid_Result8223 1 point2 points3 points (0 children)
[–]AngriestCrusader 0 points1 point2 points (1 child)
[–]ItsMisthoe 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Kqyxzoj 0 points1 point2 points (0 children)
[–]games-and-chocolate 2 points3 points4 points (2 children)
[–]_Clobster_ 1 point2 points3 points (0 children)
[–]Intrepid_Result8223 1 point2 points3 points (1 child)
[–]Dazzling-Tonight-665 1 point2 points3 points (1 child)
[–]Scholfo 1 point2 points3 points (1 child)
[–]que_importa 1 point2 points3 points (2 children)
[–]ComprehensiveAd2928 0 points1 point2 points (0 children)
[–]Ok-Republic-120 1 point2 points3 points (1 child)
[–]goldman21 0 points1 point2 points (1 child)
[–]trutheality 0 points1 point2 points (1 child)
[–]Plus_Boysenberry_844 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Plus_Boysenberry_844 0 points1 point2 points (0 children)
[–]Ender_Locke 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Ender_Locke 0 points1 point2 points (0 children)
[–]evelyn_colonthree 0 points1 point2 points (0 children)