Trying to make the user write to a file and seeing if it exists and if they should override it
print("Enter a file name to save your database to.")
name = input('Enter name of text file: ')+'.txt'
if name print ("Would you like to overwrite this file? Yes or No")
if "yes"