I know that if you want to read documentation on functions it would look something like this:
print(function_name.__doc__)
or something like this:
print(help(function_name)
is there any possible way to find documentation on methods? Because when I tried to find information on .upper() or .lower() it would not simply work. I hope i'm not mixing terminology here.. and it's really called a method.
print(upper.__doc__) # print(help(lower)
dose not work .... and it's fine, these methods are very simple to understand... but what if we start using something like regex where there are many methods that look seemingly the same...but actually not.
example: re.findall() or re.search()
I would like to know what re(regex) module does or what findall or search method does... is there a possible way to do this without leaving your IDE?
I am extremely sorry, I'm very new to the language but I would love to get better without relying on "howto" videos or articles and finding out how to pull out documentation in different instances is very important for that matter.
upperis a method ofstr, so probably callinghelp(str.upper)will work. If not, you can call help on the class:help(str)