use of pass keyword in python | pass keyword |


Use of Pass keyword in python | pass keyword  |



Pass Keyword:

Pass is keyword in python . it is use when you do not want to add any properties or method to the class. this is basically null operation. 
(If you do not specifies any attributes and behaviors within class then written pass keyword .)




use of pass keyword in python | pass keyword
Pass Keyword





Program Using Pass Keyword   :-



Class Value:
         Pass 
 p= Value()
 p. a= 25
 p. b= ‘xyz’
 print ( “Values :”  p.a , p.b)





Output -

Values :  25   xyz











Post a Comment

Post a Comment (0)

Previous Post Next Post