Calling task inside a function

In reply to rgarcia07:

Thanks for the answer
by the way the second print statement must print

VALUE: 15 at 1 (instead of 10 ) right as you are passing 15 from function.