Python Code Challenge

151 - Create a class Product with instance variables for name, price, and rating. Create a method display that prints the product information to the console. Create a subclass Electronics with a method warranty that returns the length of the warranty in years.