What is a pure function python?



What is a pure function python?..

Answer / Satyendra Pratap Singh

A pure function in Python is a function that has the following properties: it always returns the same output for a given input (deterministic), and it does not cause any side effects such as modifying external variables or printing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is object () in python?

1 Answers  


What are uses of lambda?

1 Answers  


How is it possible to share global variables across various modules?

1 Answers  


What is the output of this below query?

1 Answers  


What is python used for at google?

1 Answers  


What is the starting point of python code execution?

1 Answers  


Is python a programming?

1 Answers  


Why everything in python is an object?

1 Answers  


How do you create a project in python?

1 Answers  


Python read a single character from the user?

1 Answers  


What is the length of your largest python code? Can you please describe the project?

0 Answers  


Explain the difference between a list and the tuple?

1 Answers  


Categories