Q. What is empty statement? What is its need?
Answer =
A statement which does nothing is known as empty statement.
In python empty statement is pass statement.
A pass statement is useful in those place where the syntax of language requires the presence of a statement but where the logic of the program does not.
Example = in looping
You can understand by watching videos --
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )