PYTHON CODE (product class.py): Develop a class called ‘Product’that is initialized using the following values: ‘id’, ‘price’,‘inventory’, and ‘condition’. During the initialization, the valuefor ‘condition’ should be checked and if it is anything other than“New”, “Used”, or “Refurbished”, the constructor should raise a‘ValueError’. The class should have two main methods; ‘sell’ and‘stock’. Both methods accept one argument, which is the quantity.The ‘sell’ method is called whenever a specific quantity of theproduct is sold. It has to update the inventory and print the newinventory on the screen. If the sold quantity is greater than theinventory, a ‘ValueError’ should be raised. The
OR
OR