The built-in function dir() is used to find out which names a module defines. It returns a sorted list of strings
dir() does not list the names of built-in functions and variables. If you want a list of those, they are defined in the standard module builtins:
Code:
import sys, builtins
dir(sys)
dir(builtins)
dir()
Watch video Python 037: The dir() Function online without registration, duration hours minute second in high quality. This video was added by user BharatOnlineDS 06 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 32 once and liked it 1 people.