book=[]
book.append(input ("Entre the name of a book you own:\n"))
ask = input ("Entre the name of another book you own (or press 'Entre' to skip):\n")
if ask :
book.append(ask)
else :
print ("")
print (f"your library :{book}")
future=[]
future.append(input("Entre the name of a book you wish to have in the future:\n"))
ask2 = input ("Entre the name of another book you wish to have (or press 'Entre' to skip):\n")
if ask2 :
future.append(ask2)
else :
print ("")
print (f"your wishlist:{future}")
ask3=input ("Entre the name of a book from your wishlist that you've acquired (or press 'Entre' to skip):\n")
if ask3 :
future.remove(ask3)
book.append(ask3)
else :
print ("")
print (f"update library {book}")
print (f"update wishlist {future}")
ask4=input ("Entre the name of a book from your library you wish to donate (or press 'Entre' to skip):\n")
if ask4 :
book.remove(ask4)
else :
print ("")
print (f"Final library after donations{book}")
5 إعجابات
جميل، بالتوفيق إن شاء الله
إعجابَين (2)
جميل ما شاء الله
فقط ملحوظة صغيرة وانا اجرب البرنامج لم اتبرع بأي كتاب ولكن كتب لي مكتبتك بعد التبرع هي كذا عايزني اتبرع بالعافية ليييه
إعجابَين (2)