+ 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

11th Oct 2017, 6:59 AM
Bohdan Sakovych
Bohdan Sakovych - avatar
5 Réponses
+ 14
Thanks @johan, I'll try
11th Oct 2017, 8:02 AM
Bohdan Sakovych
Bohdan Sakovych - avatar
+ 12
Please, what is it possible to be, huh :/
11th Oct 2017, 7:35 AM
Bohdan Sakovych
Bohdan Sakovych - avatar
+ 12
It works, thanks, but when I type non-author name, it still displays first title
11th Oct 2017, 8:08 AM
Bohdan Sakovych
Bohdan Sakovych - avatar
+ 5
I think you need to acces the information inside the class with the . operator like this: print(drama.title)
11th Oct 2017, 7:55 AM
johan beimers
johan beimers - avatar
+ 1
do you still need the solution?
16th Dec 2017, 9:04 PM
johan beimers
johan beimers - avatar