Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does python have header files like C/C++? [closed]

Does python require header files like C/C++ ? What are the differences between including header files and importing packages ?

like image 802
MD. Khairul Basar Avatar asked Sep 10 '14 11:09

MD. Khairul Basar


2 Answers

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

like image 98
John Zwinck Avatar answered Oct 15 '22 09:10

John Zwinck


no you dont have to... in some cases you would want to import libraries..http://www.tutorialspoint.com/python/python_modules.htm

like image 44
n32303 Avatar answered Oct 15 '22 09:10

n32303