OOP Python | Sololearn: Learn to code for FREE!

+13

OOP Python

Could you, please, help me with this code? It works, displays, but an address at memory or what is it <__main__.Library object at 0x000001EF3835A8D0>? But I need a book to display. https://code.sololearn.com/cfRZJEXxoov8/?ref=app

10/11/2017 6:59:06 AM

Bohdan

5 Answers

New Answer

+14

Thanks @johan, I'll try

+12

Please, what is it possible to be, huh :/

+12

It works, thanks, but when I type non-author name, it still displays first title

+5

I think you need to acces the information inside the class with the . operator like this: print(drama.title)

+1

do you still need the solution?