Assignment doubt w2d3 find all methods of list

Q21. Where can you find the list of all the methods supported by lists?

you can use dir() function to access all the methods associated with an object. (it means any object like list, set, dictionary, integer etc.)

try and execute below code to check if you are getting all the methods of a list

a = [1,2,3] # you can define any list here
dir(a)
1 Like

update in quizz assignment and got it
thanks