dir() and help() are the default functions of python for documnetation.
dir() is used to get the list of available operations/methods of an object
help() is used to get the documentation.
Syntax:
dir(str) dir(int) dir(float) dir(list) dir(tuple) dir(dict) dir(set)
Or variable=“python” ; dir(varaible)
help(str) help(int) help(float) help(list) help(tuple) help(dict) help(set)