Getting Help

If you need quick information about any function or statement in Python, then you can
use the built-in help functionality. This is very useful especially
when using the interpreter prompt. For example, run help(str) - this
displays the help for the str class which is used to store all
text (strings) that you use in your program. Classes will be explained in detail in
the chapter on object-oriented programming.

Note

Press q to exit the help.

Similarly, you can obtain information about almost anything in Python. Use
help() to learn more about using help itself!

In case you need to get help for operators like print, then you need
to set the PYTHONDOCS environment variable appropriately. This can be
done easily on Linux/Unix using the env command.