If used without argument, Python’s built-in dir() function returns the function and variable names defined in the local scope—the namespace of your current module. If used with an object argument, dir(object) returns a list of attribute and method names defined in the object’s scope. Thus, dir() returns all names in a given scope.
Full Tutorial:
►► Do you want to thrive as a self-employed Python freelancer controlling your own time, income, and work schedule?
Check out our Python freelancer course:
⁉️ Do you have a question? Leave a comment and we will answer as soon as possible!
⏰ Subscribe to the channel, never miss a new video!
►►
Did you know? Finxter is one of the top 10 Python Blogs on the internet!
• Some articles you should read:
• How many of these tricky Python puzzles can you solve?
More about Python & Freelancing:
• Finxter Email Academy (100% FREE):
• Finxter Python Freelancer Webinar:
• Leaving the Rat Race with Python (Book):
Do you want to thrive as a self-employed Python freelancer controlling your own time, income, and work schedule? Check out our Python freelancer resources:
Finxter Python Freelancer Course:
Finxter Python Freelancer Webinar:
Leaving the Rat Race with Python (Book):