Sep-06-2018, 04:54 AM
I am using Python 3.7, and would like to know if is there method/function to ask the user to provide a folderPath (then print or work further)?
Please see my code as .replace() is not working for me here:
Please see my code as .replace() is not working for me here:
#Declare Variable filePath = "" fileName = "" fileFullPath = "" filePath = input("Enter the file path: ) fileName = input("Enter the file name with extension (.txt): ") fileFullPath = filePath.replace("\","\\") + "\\" + fileName print("Full file address is: " + fileFullPath)