d) An empty null statement in Python is:
O go
o
Over
o pass
Answers
Answered by
0
Explanation:
In C/C++ and Java, we can write empty function as following
// An empty function in C/C++/Java
void fun() { }
In Python, if we write something like following in Python, it would produce compiler error.
# Incorrect empty function in Python
def fun():
Output :
IndentationError: expected an indented block
In Python, to write empty functions, we use pass statement. pass is a special statement in Python that does nothing. It only works as a dummy statement.
# Correct way of writing empty function
# in Python
def fun():
Similar questions
Social Sciences,
2 months ago
India Languages,
2 months ago
Hindi,
2 months ago
English,
5 months ago
Hindi,
5 months ago
Math,
10 months ago
Biology,
10 months ago