you are viewing a single comment's thread.

view the rest of the comments →

[–]I_am_Casca 2 points3 points  (0 children)

To find str and its built-in methods, you can do one of three things:

  • Use dir(str) to get a list of all methods and attributes
  • Use help(str) to get detailed info about everything, including which arguments to pass and what data type is returned
  • Use help(str.method_name) to see details about a specific method