What is the parameter passing mechanism in Python?



What is the parameter passing mechanism in Python?..

Answer / Sheetal Gupta

In Python, parameters can be passed by position (positional arguments), by assignment (keyword arguments), or a combination of both. There's also support for optional and default arguments.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is a metaclass in Python?

1 Answers  


Among lists,sets,tuples which is faster?

1 Answers  


What is difference between sort and sorted in python?

1 Answers  


How do I create a variable number of variables?

1 Answers  


What does ‘#’ symbol do in python?

1 Answers  


How do you debug a python program?

1 Answers  


What is the difference between local vs global in python?

1 Answers  


How is an empty tuple created?

1 Answers  


How can the ternary operators be used in python?

1 Answers  


Is coding useful in finance?

1 Answers  


What is the use of ‘self’ keyword in python?

1 Answers  


Write a program to produce fibonacci series in python.

1 Answers  


Categories