0 votes
1 view
in Python by (3.3k points)

So I'm still pretty new to Python and I am still confused about using a parameter vs an argument. For example, how would I write a function that accepts a string as an argument?

1 Answer

0 votes
by (6.8k points)

These terms in general used in place of each other but the main difference between parameter and argument is that the parameter is what is something that is declared in the function, while an argument is something that is sent or passed through when there is a function call.

def Multiply (x, y):

return x*y

 

Multiply (9,5)

  •   Parameters are x and y
  •  Arguments are (9,5) passed when call is to make to the function.

Interested in Python, Check out Python Certification to get More updated by Intellipaat  

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 4 in Python by Rekha (1.4k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...