Python Dir Exercises Let’s check out some exercises that will help you understand Python’s dir() function better. Exercise 5-a Take a look at the attributes and methods of the str class. #Type your answer here. str="Hello World!" print(dir(str)) Hint 1 dir() will show attributes and methods of an object. Solution print(dir(str)) Exercise 5-b Now print the attributes and methods of a list. #Type your code here. lst=list() print() Hint 1 dir() will show attributes and methods of an object. Solution print(dir(lst)) Exercise 5-c Can you print the attributes and methods of a dictionary?. # Type your code here. print() Hint 1 dir() will show attributes and methods of an object. Solution print(dir(lst))