Wednesday 28 November 2012

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

Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.