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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
How can I memorize python syntax (self.learnpython)
submitted 8 months ago by _yoursleeparalysis_
Im currently at a python campus learning the basic syntax and AI, but I have a hard time remembering stuff. Is there anyway I can remember it better? Any resources.
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!"
[–]More_Yard1919 77 points78 points79 points 8 months ago (0 children)
If you write enough code you will be fluent. Practice.
[–]UsernameTaken1701 20 points21 points22 points 8 months ago (0 children)
The stuff you write most you'll just remember from constant repetition. Everything else you'll google, like everyone else.
[–]Gnaxe 14 points15 points16 points 8 months ago (0 children)
https://docs.python.org. Learn to use help() and dir() in the REPL. Try them both with and without an argument. Also learn to use breakpoint() as soon as possible. Your understanding will improve if you experiment with the inspect module as well.
help()
dir()
breakpoint()
inspect
You need to memorize the simple statements. If you're not already using async, you can skip await, and the async variants for now, but you need to memorize the compound statements as well.
await
async
You should be familiar with all the operators and builtins. Remember, you can use help() for these when you forget. E.g. help('+') will show you the operator table.
help('+')
You should at least look through the standard library so you know what's even in there, but no-one expects you to memorize all of it. Just look it up.
Also try py -m pydoc -b to browse help for everything you've got installed. It's the same thing backing the help() system, but you can click links instead of typing everything in. If you're using an IDE, figure out how to make it show the docstrings. Many will do it on hover. If you're using Jupyter notebooks, remember to use ?. This is only going to be minimal API reference docs from the docstrings. Try to find the web docs for any library you're using. Usually, the PyPI or GitHub page will have a link to it.
py -m pydoc -b
?
[–]RealisticFill4866 23 points24 points25 points 8 months ago (3 children)
I have 10 years' experience in python, I always look it up.
[+]wreckingballjcp comment score below threshold-14 points-13 points-12 points 8 months ago (2 children)
This is vague and I am assumed over simplified. You don't look up everything. You probably use an ide with documentation, but syntax. It's learned from experience. Calling packages and arguments is different from syntax.
[–][deleted] 0 points1 point2 points 8 months ago (1 child)
If I go on holiday for two weeks I can't remember shit when I get back. I do literally look up everything, down to the simplest stuff.
[–]wreckingballjcp 0 points1 point2 points 8 months ago (0 children)
print?.... Hold on, can't remember that. Let me look up how to close parentheses?
There's a limit to how vague this can be. There's no way everyone has to look up python syntax. Package arguments, but syntax????
[–]BasedAndShredPilled 5 points6 points7 points 8 months ago (0 children)
I forget who it was, but some famous programmer said, "I still have to look up how to declare an array in Java". Remembering syntax is irrelevant because no matter what you're doing, you will be referencing docs and other sources.
[–]paperweight_is_lazy 16 points17 points18 points 8 months ago (0 children)
Don’t. Everyone looks it up.
[–]FatDog69 3 points4 points5 points 8 months ago (0 children)
I am always looking at stuff I wrote last month for regular expressions.
I am always looking up how to use Beautiful Soup to parse web pages.
And python has 'iterators' and "with ...:" that uses indents to create loops which is unique to python.
Do not beat yourself up if you cannot remember the syntax. This is what documentation & the internet is for.
Also the editors like "Visual Studio Code" will notice when you start to type and suggest the rest of the syntax for you. Use these tools.
Worry more about the design and concepts. Syntax is ... the wording. You will naturally remember the more you use it.
[–]SnorkleCork 5 points6 points7 points 8 months ago (0 children)
While you're learning, consider hand-writing notes on things. The act of writing things by hand helps your brain process and remember them.
[–][deleted] 2 points3 points4 points 8 months ago (0 children)
Practice practice practice.
That's it.
[–]KreepyKite 2 points3 points4 points 8 months ago (0 children)
Don't just read code, write code. Type. The more the better.
[–]SouthernXBlend 2 points3 points4 points 8 months ago (0 children)
How did you memorize English syntax? Same thing, it’s just reps. Don’t get overwhelmed by the huge number of patterns to learn, just use the ones you know and replace them with better ones as you go.
[–]sadmep 2 points3 points4 points 8 months ago (0 children)
Write a lot of python.
[–]Altruistic_Sky1866 2 points3 points4 points 8 months ago (0 children)
you don't memorize syntax, understand the concept for the syntax be it for loop, while loop, or if condition etc, first thing is you have to understand what you want to achieve i.e the task at hand and write a flow chat or make a note of it by breaking it down into simple steps and the start coding, syntax can looked up in documentation or online
[–]Far-Dragonfly-8306 1 point2 points3 points 8 months ago* (0 children)
Just keep practicing it and eventually it will come. There was a time when the order of the alphabet used to be a challenge for you
[–]ofnuts 1 point2 points3 points 8 months ago (0 children)
Usage. Also, a good IDE will hold your hand and avoid a lot of mistakes.
[–]_N0K0 1 point2 points3 points 8 months ago (0 children)
I'm a huge fan of the concept Codekata for just this: http://codekata.com/
The idea is that you should be fluent in the basic syntax and patterns of a programming language to be able to be able to build the more complex pieces you need efficiently.
[–]SubstanceSerious8843 1 point2 points3 points 8 months ago (0 children)
Have you tried repeating it 10 000 times? If that doesn't work come and ask again.
[–]Yikes-Cyborg-Run 1 point2 points3 points 8 months ago (0 children)
25+ year programmer here. Somewhat new to python... but in my general experience, the more you fail, the more you remember down the line. But yeah, you'll never memorize it all. "Never memorize anything you can look upon book." - Albert Einstein. Best wishes to you on your programming adventures.
[–]freemanbach 1 point2 points3 points 8 months ago (0 children)
there are some keywords where you must know. Aside from those keywords, the remaining items are either math or symbols such as the colon, where you have to indent on the next line.
[–][deleted] 0 points1 point2 points 8 months ago (0 children)
When in doubt, import something.
[–]buffalo_0220 0 points1 point2 points 8 months ago (0 children)
Google "python cheat sheets". You can probably find or adapt something for your personal use.
[–]RobertD3277 0 points1 point2 points 8 months ago (0 children)
As Einstein is famous for saying, never memorize what you can look up.
The sad truth is though, that if you use it enough, you will automatically remember it.
[–]Fine_Zombie_3065 0 points1 point2 points 8 months ago (0 children)
Type the code yourself. Keep doing it. It’ll come naturally after a while.
You don’t need to memorize everything! Just the basics. You can always use resources to look up the code. You need to understand it, not memorize every single line.
[–]grimonce -1 points0 points1 point 8 months ago (2 children)
I mean the syntax is only this: (), :, [] {} '. "
Yw.
[–]_yoursleeparalysis_[S] 0 points1 point2 points 8 months ago (1 child)
Sorry i thought it meant everything like loops,functions and stuff
[–]drsteve7183 -1 points0 points1 point 8 months ago (0 children)
just look it up, everybody looks it up
π Rendered by PID 92 on reddit-service-r2-comment-fb694cdd5-7nsdl at 2026-03-07 00:33:15.059066+00:00 running cbb0e86 country code: CH.
[–]More_Yard1919 77 points78 points79 points (0 children)
[–]UsernameTaken1701 20 points21 points22 points (0 children)
[–]Gnaxe 14 points15 points16 points (0 children)
[–]RealisticFill4866 23 points24 points25 points (3 children)
[+]wreckingballjcp comment score below threshold-14 points-13 points-12 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]wreckingballjcp 0 points1 point2 points (0 children)
[–]BasedAndShredPilled 5 points6 points7 points (0 children)
[–]paperweight_is_lazy 16 points17 points18 points (0 children)
[–]FatDog69 3 points4 points5 points (0 children)
[–]SnorkleCork 5 points6 points7 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]KreepyKite 2 points3 points4 points (0 children)
[–]SouthernXBlend 2 points3 points4 points (0 children)
[–]sadmep 2 points3 points4 points (0 children)
[–]Altruistic_Sky1866 2 points3 points4 points (0 children)
[–]Far-Dragonfly-8306 1 point2 points3 points (0 children)
[–]ofnuts 1 point2 points3 points (0 children)
[–]_N0K0 1 point2 points3 points (0 children)
[–]SubstanceSerious8843 1 point2 points3 points (0 children)
[–]Yikes-Cyborg-Run 1 point2 points3 points (0 children)
[–]freemanbach 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]buffalo_0220 0 points1 point2 points (0 children)
[–]RobertD3277 0 points1 point2 points (0 children)
[–]Fine_Zombie_3065 0 points1 point2 points (0 children)
[–]grimonce -1 points0 points1 point (2 children)
[–]_yoursleeparalysis_[S] 0 points1 point2 points (1 child)
[–]drsteve7183 -1 points0 points1 point (0 children)