dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Tip: Quickly Refer to the Path of the Imported Modules in Python

Learn how to get the complete path of the socket module Python file.


advertisement

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


There are numerous times when we get confused with the paths of our imported modules. A quick way to see their path in code is by performing a print.

For example:

Import socket
print(socket)

The print line will output the complete path of the socket module python file.

 

Visit the DevX Tip Bank

 





   
Srinath M. S. says: "I would love to leave a footprint in this flat world."
Thanks for your registration, follow us on our social networks to keep up-to-date