0
How can i use help command in python
4 Answers
+ 5
ļæ¼
Python help() function isĀ used to get the documentation of specified module, class, function, variables etc. This method is generally used with python interpreter console to get details about python objects
+ 2
# Hi, aaryan Vijay . Hereās an example:
# This will return 'gold'.
print('cold'.replace('c', 'g'))
# There will be no help function for 'gold'.
help('cold'.replace('c', 'g'))
# To get help for the string method .replace, don't call it - do like this:
help('cold'.replace)
0
help(something)