Python Tips
Simple Python server
use dir() to know what available methods and attributes for lists and dictionaries,...etc
In Python, the
dir()
function is used to get a list of names in the current local scope or the attributes of an object. When you usedir()
on a built-in object like a list or dictionary, it will show you the available methods and attributes for that objec
Last updated