Does python require header files like C/C++ ? What are the differences between including header files and importing packages ?
No, Python does not have header files nor similar. Neither does Java, despite your implication that it does.
Instead, we use "docstrings" in Python to make it easier to find and use our interfaces (with the built-in help()
function).
no you dont have to... in some cases you would want to import libraries..http://www.tutorialspoint.com/python/python_modules.htm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With