Why am I getting this unexpected keyword argument TypeError?

When passing kwargs into a function, it expects to find the exact variable name in the list. If instead your dictionary keys were stringaintegera, and floata the function would work without problem.

So you either need to change your function variable names or change the key names in your dictionary to get this to work

Leave a Comment