+ 1

PRINT in PYTHON, how?

In other programming language we import or include a module/header file in order to use println or cout or printf functions... How is that possible that we can directly use print without importing any such modules in PYTHON? Are all the basic functions already imported by default?

13th Aug 2017, 3:32 AM
Jeevan Jyoti
Jeevan Jyoti - avatar
1 Respuesta
+ 7
print(dir(__builtins__)) # Shows you Python's built-in default stuff. The functions are at the end.
13th Aug 2017, 3:44 AM
Kirk Schafer
Kirk Schafer - avatar