0

Hlo everyone please help me in my project on library management system it's my 1st project .it giving me error try to solve it.

https://code.sololearn.com/cnnVodsmx8HJ/?ref=app i want to submit into my college please help me to solve it.

26th Sep 2020, 4:28 PM
Akash Gupta
Akash Gupta - avatar
3 Respuestas
+ 1
print(f"we have following books in our library:{self name}") Error in this, From this is {self name} it shloud be self.name so print(f"we have following books in our library:{self.name}") You have a lot other miner miner mistakes as used == instead of = in user_choice=="", use = here self.lendDict.update({book:user}) correct one but your mentioned self_lendDict.update(book.user) print(books) #but you wrote book, both not matching.. self.booklist #typed like self.Booklist, again not match, 'B'... May be Some more but try these first...Akash Gupta
26th Sep 2020, 5:20 PM
Jayakrishna 🇮🇳
0
Jayakrishna🇮🇳 bro why it giving me error on else statement on 17 line.
26th Sep 2020, 5:42 PM
Akash Gupta
Akash Gupta - avatar
0
You have print statement after if that causing end of if so else part not comes into if-else.. Else without if is error.. May be missing ident for print. So add ident. This works... if book not in self.lendDict.keys(): self_lendDict.update({book:user}) print("Lender-book database has been updated you can take now") else: #(continue next) Akash Gupta
27th Sep 2020, 2:35 PM
Jayakrishna 🇮🇳