0
Am i correct
1)x=12 2)def add(a,b): 3) print(a+b) 4)add(x,55) in above code x in 4th line is parameter And 55 is argument
5 Antworten
+ 4
<a> and <b> at line 2 are parameters. Parameters are identifiers for values in the eyes of the function being called (invoked).
<x> and 55 at line 4 are arguments. Arguments are literals or identifiers for values in the eyes of the function caller.
+ 2
When you define a parameter, you prepare the 'vessels' to take up values later. These are the parameters.
When you call the function, you put values into these vessels, and these are the arguments.
0
No