Python - Use Help Function to Learn About Classes or Functions

Опубликовано: 12 Октябрь 2024
на канале: codevev
353
13

#Python #Shorts
This is helpful especially when working with other peoples' code and they are good at documenting it :)
By calling the "help" function on an instance of an object or a function (without invoking the function), it will produce a nice-looking output telling you all it knows about such object or function.
And if there's nothing useful, well, then blame whoever wrote the code without documenting it!

-------------------------------------------------------------------------------------
Links:
Blog: https://evgenyurubkov.com
Twitter:   / evgenyurubkov  
Instagram:   / evgenyurubkov  
Youtube:    / @codevev