0
How can i use help command in python
4 odpowiedzi
+ 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)