About 839,000 results
Open links in new tab
  1. dir() function in Python - GeeksforGeeks

    Apr 29, 2025 · The dir() function is a built-in Python tool used to list the attributes (like methods, variables, etc.) of an object. It helps inspect modules, classes, functions, and even user …

  2. dir () | Python’s Built-in Functions – Real Python

    The built-in dir() function lists the names in the current local scope when you call it without arguments. When you call it using an object as an argument, it attempts to return a list of valid …

  3. Python dir() Function - W3Schools

    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 …

  4. Python dir() - Programiz

    The dir() method tries to return a list of valid attributes of the object. In this tutorial, you will learn about the Python dir() method with the help of examples.

  5. The dir() Function in Python: A Complete Guide (with Examples)

    In Python, the dir() function returns a list of the attributes and methods that belong to an object. This can be useful for exploring and discovering the capabilities of an object, as well as for …

  6. Python dir() Builtin Function - Python Examples

    Python dir () builtin function is used to get all the properties and methods in a given object as a list. In this tutorial, you will learn the syntax of dir () function, and then its usage with the help of …

  7. dir() in Python - Built-In Functions with Examples - Dive Into Python

    The dir() function in Python returns a list of valid attributes and methods for the specified object. It can be used without arguments to list the names in the current scope or with an object as an …

  8. Python dir() Function - Online Tutorials Library

    Python dir() Function - Learn about the Python dir() function, its syntax, parameters, and practical examples to retrieve a list of attributes and methods of an object.

  9. Python dir () method with example - CodeSpeedy

    dir() method is Python’s inbuilt method. It takes only one parameter. It will return a list of functions and attributes of an object. Example 1: It is an inbuilt method in Python, so we have no need to …

  10. Python dir() Builtin FunctionExamples - Tutorial Kart

    Python dir () builtin function returns the list of names of attributes for a given object. If no object is given as argument, then dir () returns the list of names in the current local scope. In this …

Refresh