What are arguments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are arguments

15th May 2020, 11:57 AM
Oreoluwa Otunaiya
Oreoluwa Otunaiya - avatar
4 Answers
+ 3
Def function(a): pass Here a is parameter And calling function(5) 5 is argument
15th May 2020, 11:59 AM
Abhay
Abhay - avatar
+ 2
Arguments >value parsed to a function or variable (when calling it ).
15th May 2020, 11:59 AM
Ayush Dwivedi
Ayush Dwivedi - avatar
+ 2
arguments can usually refer to parameters of a function. python: def sum(a,b): return a + b sum(2,3) here the function takes exactly two arguments (2 and 3), which are the a and b parameters
15th May 2020, 11:59 AM
Sebastian Pacurar
Sebastian Pacurar - avatar
0
Using a mnemonic can help - Pastor Agrees meaning Pastor - Parameter and Agrees - Argument. Parameter is defined with the fucntion and Arguments are defined when you call the function. In conclusion, with the mnemonics, you know parameters come before arguments.
15th May 2020, 12:21 PM
Jibril Balogun
Jibril Balogun - avatar