What happens if you have not written anything inside 'for' or 'while loop' or 'if block'?
Well! It ended up with an Error.
But why do we not specify anything inside the 'for loop'? Isn't the 'for loop' meant to perform some task?
Well! Maybe we want to write the code later. For the current moment we want to keep it empty.
And in such cases. The 'pass' statement comes to rescue.
So, let us rewrite the above example of empty 'for loop' using 'pass' statement.
for x in "Hello World": pass
So, with the 'pass' statement, you can correct the above 'for loop'.
x = 5 while x < 5: pass
And the above statement haven't ended up with an error.
x = 2 if x < 4: pass
Similarly, the above statement haven't ended up with an error.