The dir() function returns all properties and methods of the specified object, without the values. This function will return all the properties and methods, even built-in properties which are the default for all object.
import random
print(dir())
This will print all the properties and methods of the specified object.