Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Print the file path of imported modules in python
Home
Python
Print the file path of imported modules in python
0
votes
asked
May 24, 2020
in
Python
by
SakshiSharma
Print the file path of imported modules
#python-imported-modules
#python-modules
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 24, 2020
by
Robindeniel
import os;
import socket;
print(os)
print(socket)
Output:
<module 'os' from '/usr/lib/python3.5/os.py'>
<module 'socket' from '/usr/lib/python3.5/socket.py'>
Related questions
0
votes
Q: Define modules in Python?
asked
May 16, 2020
in
Python
by
Robindeniel
#python-modules
#modules-pthon
Python-questions-answers
0
votes
Q: Python modules
asked
Dec 14, 2019
in
Python
by
sheetalkhandelwal
#python-modules
Python-questions-answers
0
votes
Q: What is the module and package in Python?
asked
Jun 12, 2020
in
Python
by
Robindeniel
#python-modules
#python-packages
Python-questions-answers
0
votes
Q: How are modules imported in Python?
asked
Oct 14, 2021
in
Python
by
rajeshsharma
modules-python
Python-questions-answers
0
votes
Q: What is the procedure to install Python on Windows and set path variable?
asked
May 17, 2020
in
Python
by
sharadyadav1986
#python-install-windows
Python-questions-answers
0
votes
Q: Define PYTHON PATH?
asked
May 16, 2020
in
Python
by
Robindeniel
#python-path
path-python
Python-questions-answers
+1
vote
Q: Print the following pattern in python
asked
Feb 15, 2021
in
Python
by
SakshiSharma
python-program
python-code
python-function
Python-questions-answers
+1
vote
Q: Print the following pattern in python
asked
Feb 15, 2021
in
Python
by
SakshiSharma
#python-pattern
python-function
python-program
Python-questions-answers
+1
vote
Q: Print the following pattern in python
asked
Feb 15, 2021
in
Python
by
SakshiSharma
#python-pattern
python-program
python-function
Python-questions-answers
+1
vote
Q: Write A Program in Python to Print the following pattern
asked
Feb 15, 2021
in
Python
by
SakshiSharma
#python-program
progam-python
python-pattern
Python-questions-answers
...