0
[SOLVED] OOP in python
How to create book class in python? Design a âbookâ class with title, author, publisher, price and authorâs royalty as instance variables. Provide getter and setter properties for all variables. Also define a method royalty() to calculate royalty amount author can expect to receive the following royalties:10% of the retail price on the first 500 copies; 12.5% for the next 1,000 copies sold, then 15% for all further copies sold. https://code.sololearn.com/c6EP4XRwh25J/?ref=app
1 Answer