New programmer here, and well let me start off with the code I have.
try:
f = input("Please type in the path to your file and press 'Enter'")
file = open(f,'r')
except FileNotFoundError:
f = input("File not found please try again.")
What I'm trying to accomplish, is if the user enters a wrong file, to keep asking the user to try again. Maybe I shouldn't be using try/except?