Let’s check out some exercises that will help you understand Python’s dir() function better.
Take a look at the attributes and methods of the str class.
Now print the attributes and methods of a list.
Can you print the attributes and methods of a dictionary?.