CPSC 203: Introduction to computers |
The number of parameters passed into the function doesn't match the number of parameters when the function is defined. The number of parameters (as well as the type of information) must exactly match.
def fun (num1, num2): <== Function 'fun' is supposed to take two parameters
print num1, num2
def start ():
num1 = 123
fun (num1) <== Function 'fun' is passed only one parameter when it's called.