Question about parameters


#1

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.


#2

They are declared in the arguments…

add_function(m, n)

#3

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