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


advertisement
 

Tip: Join Paths in Python

Learn how to join paths in Python with this example.


advertisement

Follow this example to see how to join paths in Python.

root= "/root"
str = os.path.join(root, "Y2019", "2019.txt")

 

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