Khairul Basar Rofi Khairul Basar Rofi - 1 year ago 58
Python Question

Does python have header files like C/C++?

Does python require header files like C/C++ ?
do i need to use any header file like C/C++ ?
What are the differences between including header files and importing packages ?

Answer Source

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).