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

17th Apr 2020, 8:36 AM
Bai Jilla
Bai Jilla - avatar
5 Respostas
+ 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.
17th Apr 2020, 8:48 AM
Ipang
+ 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.
17th Apr 2020, 9:09 AM
HonFu
HonFu - avatar
0
No
17th Apr 2020, 8:41 AM
Wasi
Wasi - avatar
17th Apr 2020, 9:10 AM
Wasi
Wasi - avatar