so i am making a function that will save the resulted hash, and then i want to append all saved hashes in one file, how can i append the hashes in a new line each time? I tried the "\n" but it doesn't work, any ideas?
save_hash = str(input("Do you want to save the hash value? < y - n >"))
try:
if save_hash == "y":
f = open("hash.txt", "a+")
f.write(my_hash, "\n")
print("Hash saved successfully, please check hash.txt file")
except:
print("Saving failed, please try again ..")