Thursday, November 29, 2012
1:42 PM

Break out of the function in Python

In Python if Any function return any thing or return none means the function is completed ie Break out of the function 

Example:

def test(a,b):
      return "HI Closed"
      a = b+10
      print(a)

test(10,11)
output:
HI Closed

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.