I need to accept inputs in the form of 123.456,78.
num = float(input("enter your annual salary."))
thousands_separator = "."
fractional_separator = ","
num2 ="{:,.2f}".format(num)
print(num2)
hi
50.000,00
Traceback (most recent call last):
File "main.py", line 1, in
ValueError: could not convert string to float: '50.000,00'