# imperial --> metric
# 1 lb = 0.45359237 kg
# 1 ft = 0.3048 m
# 1 in = 2.54 cm = 0.0254 m
def function(param1):
return param1 * 0.45359237 # conversie lb in kg
print(function(1))
# rezultat: 0.45359237
def function(param1, param2):
return param1 * 0.3048 + param2 * 0.0254 # conversie ft in m
print(function(1, 1))
# rezultat: 0.3302
def function(param1, param2 = 0.0):
return param1 * 0.3048 + param2 * 0.0254 # conversie ft in m
print(function(6)) # 6 feet si 0 inch
# rezultat: 1.8288000000000002