Question about parameters


Hey, everyone! I’ve recently been studying Python, and I do have a question. It’s about parameters that a function takes right after defining it.

m = 5
n = 13

def add_function(x, y):
return x + y

print add_function(m, n)

Just for clarity, why is it that Python knows that m and n are x and y? I would appreciate an explanation so that I may continue my progress.


They are declared in the arguments…

add_function(m, n)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.