# -*- coding: utf-8 -*-
"""
Created on Thu May 28 10:16:49 2026

@author: student
"""

def get_prodct(product_name, product_price, **prducts_fields):
    print("Produkt: ", product_name, "o cenie: ", product_price)
    for name, value in prducts_fields.items():
        print(name, " wynosi : ", value)
        
# === 1 ==== najprostrzy
get_prodct("Smth", 23)

# === 2 ===
get_prodct("smth", 21, dlugosc=21, smth='smth')

# === 3 ===
voc = {"smth1":21, "smth2":'smth23'}
get_prodct("smth", 21, **voc)

# === Ivoke Error ===
#voc = {1:21, 2:'smth23'}
#get_prodct("smth", 21, **voc)

# === 4 ===
get_prodct(product_name = "smth", product_price = 21, **voc)

# === 4.1 ===
get_prodct(**voc, product_name = "smth", product_price = 21)

# === Error occurs !!! ===
#get_prodct(**voc, product_name = "smth", product_price = 21, **voc)


# === 5 ===
get_prodct('smth', product_price = 21, **voc)

# === 6 ===
voc_2 = {"smth1":21, "smth2":'smth23', "product_name": "smth_name", "product_price": 21}
get_prodct(**voc_2)




    
    