1

I know the pass is a reserved keyword which does nothing when interpreted by the python interpreter. I am just curious to know what is the real purpose of it.

Let's say

for i in [1,2,3]:
   pass
   print(i) 

When it is interpreted it gives nothing, then what is the purpose of existence of this reserved keyword. I researched a little but not able to find the exact purpose of the pass keyword, Just curious to know.

0 Answers0