def takenum(x,y):
print("Your first number is " + x + " your second number is " + y)
result = (float(x) + float(y))
print(result)
x = input("put your first number: " )
y = input("Put your second number: " )
takenum(x, y)

NOTE: your input should be 3.5 not 3,6
use dot as decimal separator
Or if you want use dots and commas or just commas as separator,
just remove the ,(comma) with replace():
def takenum(x,y):
print("Your first number is " + x + " your second number is " + y)
result = (float((x).replace(',','.')) + float((y).replace(',','.')))
print(result)
x = input("put your first number: " )
y = input("Put your second number: " )
takenum(x, y)
what code is doing:
float((x).replace(',','.'))
you have x which is string(input is returning string), replace , (comma) with . (dot),and convert string into float
