Skip to content

Get help for a method in Python

Advertisements

Syntax

print(help(<your method>))

Example

print(help(str.upper))
Help on method_descriptor:

upper(...)
    S.upper() -> string
    
    Return a copy of the string S converted to uppercase.

None

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.