+ 2
List of Pythonās functions, methods, objects, etc.
Hi yāall! So Iāve been doing the Python course here and Iām starting to feel like I really want to do some coding! The thing is: thereās been so many information packed into this course that I canāt really remember many of the possibilities I have. With some others, I can remember basics but nothing deeper. Now I was wondering if there is some sort of list or chart or anything that states the, for starters, basic functions or objects one can use in Python. And if there isnāt, maybe someone can explain how one goes about finding just the right function for what one wants to do? I appreciate all help, thanks guys!
4 Answers
+ 2
Yes, experience. I'd say start with this smaller list:
https://docs.python.org/3/library/functions.html
They are designated as built-in functions for a reason. Many of them should be familiar to you. But read about them anyway. There are often some optional arguments/other subtleties that can make life easier (or produce unexpected results).
And just reading them is usually not enough for me: unless I implement them, I forget all about them. š
I often find out about new functions/features by reading other's codes (Sololearn is awesome for that). And sometimes, I feel like "There must be a function for this!" and start searching through the docs of specific modules. With some practice, you can guess which modules to browse for which kinds of functions. Like, obviously, to get the sine of an angle, I'd search in the docs of math module. Similarly itertools, functools, time, re etc are all built around a specific theme.
+ 2
https://docs.python.org/3/library/index.html
+ 1
Alright, so theres the list, thanks for that! But how does one navigate through it and find the function best fitted for their needs? Experience?
+ 1
... futhermore remember that exists always google š