0

How can i use help command in python

17th Mar 2023, 3:55 PM
aaryan Vijay
aaryan Vijay - avatar
4 Respuestas
+ 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
17th Mar 2023, 4:03 PM
Herobrine
Herobrine - avatar
17th Mar 2023, 4:31 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 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)
17th Mar 2023, 5:16 PM
Per Bratthammar
Per Bratthammar - avatar
0
help(something)
18th Mar 2023, 12:40 AM
Алексей Молодан
Алексей Молодан - avatar