Podcast
Questions and Answers
What is the purpose of grouping related code into a module?
What is the purpose of grouping related code into a module?
How can a module be created in Python?
How can a module be created in Python?
What is the purpose of the 'import' statement in Python?
What is the purpose of the 'import' statement in Python?
What is a search path in Python?
What is a search path in Python?
Signup and view all the answers
Which command is used to import a module 'p1.py' at the top of a Python script?
Which command is used to import a module 'p1.py' at the top of a Python script?
Signup and view all the answers
What is the function of the 'display()' function in the Python code provided?
What is the function of the 'display()' function in the Python code provided?
Signup and view all the answers
What does the 'from math import pi' statement do in Python?
What does the 'from math import pi' statement do in Python?
Signup and view all the answers
What is the purpose of using 'from modname import *' statement in Python?
What is the purpose of using 'from modname import *' statement in Python?
Signup and view all the answers
Where does the Python interpreter search for a module when it is imported?
Where does the Python interpreter search for a module when it is imported?
Signup and view all the answers
What is the PYTHONPATH environment variable used for in Python?
What is the PYTHONPATH environment variable used for in Python?
Signup and view all the answers
What is a name (identifier) in Python?
What is a name (identifier) in Python?
Signup and view all the answers
What does the id() function in Python return?
What does the id() function in Python return?
Signup and view all the answers
When is it appropriate to use the 'from modname import *' statement in Python?
When is it appropriate to use the 'from modname import *' statement in Python?
Signup and view all the answers
'PYTHONPATH' variable on a Windows system typically looks like:
'PYTHONPATH' variable on a Windows system typically looks like:
Signup and view all the answers
'PYTHONPATH' variable on a UNIX system typically looks like:
'PYTHONPATH' variable on a UNIX system typically looks like:
Signup and view all the answers
'sys.path' variable in Python contains:
'sys.path' variable in Python contains:
Signup and view all the answers