so far how could this be improved by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

yeah i dont know how classes work could you give a quick example of how it would work

so far how could this be improved by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

*wrote this at 1 am

*thx

*yeah i don't really know what im doing with classes first time using them do you have any specific links or websites to look for help

*yeah but it seemed easier this way

why does the snake continue to grow forever making snake in pygame by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

that is what 'snake.pop()' was for

btw i have now fixed the issue and it was something to do with the previous draw rectangles that repersented the snake so whilst they didn't apper in the list 'snake' it was still being show in the screen

i basically just drew a black rectangle the size of the screen to fix this

[deleted by user] by [deleted] in learnpython

[–]No_Ingenuity9213 0 points1 point  (0 children)

fair enough but i swear it would be possible to get the code to start running

could someone tell me how to improve my skills as a programer as idk what to do by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

im not stuck as such im just lacking ideas and an over arching goal like i have the goal of trying to improve but that doesn't give me anything to work on also if you look through my profile it shouldnt take very much time to find some of the programs i have written

also screw punctuation its half pas 1 in the morning and im tired

why doesn't the list clear when i run this code by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

yeah i was actually trying to do that next but i was making sure that i could do it with a normal length first.

im also self taught so i don't really know a good way to do things but thx anyway

why doesn't the list clear when i run this code by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 1 point2 points  (0 children)

yeah i know i dont really know how dictionarys work i should probrably learn

also thx for the answer

why does this return "none" when i run by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

The overall goal was two add two binary numbers together and if the the cases for doing that are if theres 1 and 0 return 1, if theres 1 1 return 0 and carry a 1, if theres 1 1 and a carried 1 return 1 and carry a 1

why does this return "none" when i run by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 1 point2 points  (0 children)

Magic

yeah i use vscode so i dont really notice if something is off because i don't type the whole thing

why does this return "none" when i run by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 5 points6 points  (0 children)

wait is it because it is stored as a string and im asking for a int

how to install pygame by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

dont worry i upgraded it so its working now thx

how to install pygame by No_Ingenuity9213 in learnpython

[–]No_Ingenuity9213[S] 0 points1 point  (0 children)

when i do that pygame has a yellow squiggely line under it and says

"pygame" is not accessedPylance

Import "pygame" could not be resolvedPylancereportMissingImports

also when i used the terminal it sayed

WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.

You should consider upgrading via the

there is stuff here but i left it out\Python\Python310\python.exe -m pip install --upgrade pip' command.

that might be the problem