By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,363 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,363 IT Pros & Developers. It's quick & easy.

header files

P: 1
I am new python learner.In c or c++ we use header files.What about python header files?
Mar 4 '14 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
The import statement in python would be the equivalent of the #include statement in C. For example, if you need the functions defined in the math module:
Expand|Select|Wrap|Line Numbers
  1. import math
See Python documentation on modules.
Mar 4 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.