Answer to Question #5639 in Python for Kam

Question #5639
I have a program that gets a filename from the user and then opens that file and saves the whole path(including the name of the file.) as a string into a variable.

I want to extract JUST the path from the string and use that to make the program save the new file in the same directory. How do I do this? (referring to the extraction, not the saving)
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS