Cannot seem to find the error

Please help. I keep getting this error and reviewing the video but I cannot seem to find the error.

Screenshot 2022-02-04 100621

try switching the
%(cost, method)
to be
%(method, cost)

that worked, thank you