Is empty function in python?



Is empty function in python?..

Answer / Iqbal Hasan Siddiqui

Yes, an empty function can be defined in Python using the `pass` keyword or simply writing def without any content: `def empty_function(): pass`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Is python 0 indexed?

1 Answers  


What is an iterator in python?

1 Answers  


What tools can be used to unit test your python code?

1 Answers  


What does %d do in python?

1 Answers  


Explain deep copy in python?

1 Answers  


What are some python projects for beginners?

1 Answers  


Is a *.pyd file the same as a dll?

1 Answers  


What is the iterator protocol?

1 Answers  


What are the types of variables in python?

1 Answers  


What does len () do in python?

1 Answers  


How would you check if MySQLdb is installed?

1 Answers  


Is python good for windows?

1 Answers  


Categories