the automatic test needs two lines of output to be graded correctly. Changing this part of your code:
operation = input("1 - add an entry, 2 - read entries, 0 quit\nFunction:")
to
print("1 - add an entry, 2 - read entries, 0 - quit")
input("Function: ")
will correct your submission.