Practice ยท 2 of 3
Book with Methods
Create a class Book(title, pages) with a method reading_time(minutes_per_page=2) returning pages * minutes_per_page. Also give it a __repr__ like Book('Title', 100).
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Class Fundamentals