pass Statement ये null Statement होता है | जब pass Statement execute होता है तब कुछ नहीं होता है |
Program में जब functions, loops, classes या control statement लिखा जाता है उनकी body उसके निचे ही लिखी जाती है लेकिन अगर उनकी body बाद में लिखनी हो तो 'pass' Statement का इस्तेमाल किया जाता है |
Program में जब functions, loops, classes या control statement लिखा जाता है उनकी body उसके निचे ही लिखी जाती है लेकिन अगर उनकी body बाद में लिखनी हो तो 'pass' Statement का इस्तेमाल किया जाता है |
Syntax for pass Statement
pass
Example for pass Statement
Source Code :
class A: pass
def func(param):
pass
func(10)
print("Hello World")
Output :







No comments: