Sep-06-2018, 05:02 AM
(This post was last modified: Sep-06-2018, 05:03 AM by Gribouillis.)
The standard module
pathlib
will make your life easierfrom pathlib import Path file_path = Path(input("Enter the file path: ").strip()) file_name = input('Enter the file name with extension (.txt): ').strip() file_full_path = file_path / file_name print("Full file address is", file_full_path)