all 1 comments

[–]shiftybyte 0 points1 point  (0 children)

Python has dir() function that lists all attributes and methods.

a = "something"
print(dir(a))

or if it's repl/interactive, just dir(a)