human
Give me a code to 1 given the following:
1.3. Razredi"
Please write code following the instructions in jupyter notebook style.
assistant
#Here is code to 1.

class Product:

    def __init__(self, product_name=None, tags=None, price=0.0):
        self.product_name = product_name
        self.tags = [] if tags is None else tags
        self.price = price
        
    vat = 0.25 

    def product_price(self, with_pdv=False):
        if with_pdv:
            return self.price * (1 + self.vat)
        else:
            return self.price
    
    def contains_tag(self, tag):
        return (tag in self.tags)

prod = Product(product_name="toilet paper", tags=["health", "toilet", "fresh"], price=10)
print(prod.product_price(with_pdv=True))
print(prod.product_price(with_pdv=False))

prod.contains_tag("fresh")

prod.contains_tag("money")

prod1 = Product(product_name="toilet paper", price=10)
prod2 = Product(product_name="toothbrush", price=10)
Product.vat = 0.5
prod1.vat = 0.3

prod1.product_price(with_pdv=True)

prod2.product_price(with_pdv=True)