I have a problem every time i try and save the text i write for "ime" or "autor" to an external text file. Any suggestions on how to solve this problem so i can store the info in an organized "category" like manner would be greatly appreciated.
def unosenje_knjiga():
file = open("2.rtd", "a")
ime = str(input("Ime knjige:"))
while len(ime) <= 3:
print("Molimo Vas unesite ime knjige ponovo!")
ime = str(input("Ime knjige:"))
autor = str(input("Autor knjige:"))
while len(autor) <= 0:
print("Molimo Vas unesite ime autora ponovo!")
ime = str(input("Autor knjige:"))
isbn = str(input("ISBN knjige:"))
while len(isbn) <= 0:
print("Molimo Vas unesite ISBN knjige ponovo!")
ime = str(input("ISBN knjige:"))