How could I use python documentation to help me learn python?
Confused about the python documentation
Reading python documentation in the terminal? - Stack Overflow
Where can I find comprehensive Python documentation?
I see that python has documentation with how to use it fully but how do I read those docs and actually learn from it? Can anyone recommend to me how I can use those docs to my advantage in this learning process.
I really don't understand what the python documentation is trying to explain. When I try to read it, it's full of links to other parts which are full of links to other parts and the explanations just don's make sense to me. I don't understand all of the knowledge it assumes and I don't know where I can learn this. I don't like using YouTube for tutorials and I mostly read books about programming by the documentation is just really confusing for Python. Is there anywhere on the documentation where I can learn all of the concepts required to understand the documentation for Python?
Thank you for any responses.
It's not an exact copy of the documentation, but there's the builtin help() function.
In an interactive python session, you just call help(whatever_you_want_to_read_about), for example:
>>> help(all)
Help on built-in function all in module builtins:
all(...)
all(iterable) -> bool
Return True if bool(x) is True for all values x in the iterable.
If the iterable is empty, return True.
Alternatively, you can start an interactive help session like this:
C:\Users\Rawing>python -c "help()"
Welcome to Python 3.4! This is the interactive help utility.
help>
And then just type the function/class/module you want to know about:
help> all
Help on built-in function all in module builtins:
all(...)
all(iterable) -> bool
Return True if bool(x) is True for all values x in the iterable.
If the iterable is empty, return True.
On Debian (and derived distributions, like Ubuntu) install pydoc package. Then you can use pydoc whatever command.