![ygopro 2 missing images ygopro 2 missing images](https://user-images.githubusercontent.com/18324297/82119156-91700d00-977c-11ea-86b2-e2edacaf136a.png)
You also need to show us how you are calling your function. Please post your error messages as text instead as a screenshot. (Sep-25-2020, 06:40 PM)deanhystad Wrote: We cannot see your screenshot. TypeError: calculate() missing 4 required positional arguments: 'a', 'b', 'c', and 'd' Users/Lia/Desktop/Screenshot at 20.17.31.pngįile "/usr/src/public/tests.py", line 8, in test_output_is_number Thank you for this elaborate reply!! Unfortunately the value for a,b,c and d (1,2,3,4) are already given, aswell as the function name calculate so I cannot change that.Īnyway I tried using your tips and even though the console gives me an output, the exact same type error remains (I attached pictures to give an exact view of this) A void using generic names like "function" or "calculate". What is the calculated value? How would I use it? Name the function after what it does or what it is used for. 1, 2, 3, 4 are probably not common values for this function.Ĭalculate is a bad function name. If you use named arguments, you should supply useful default values. Do any of the arguments in this function have commonly used values? For a this function it may make sense to only use position arguments, thus forcing the caller to supply values for all the arguments. Sometimes it does not make any sense to use named arguments. It is generally not a good idea to print from inside a function unless the purpose of the function is printing. I put a print in my function to show how the values in the function call get mapped to the arguments inside the function. Error:Synta圎rror: positional argument follows keyword argumentSome additional comments: