I have two functions with one containing a return statement. My agenda is when the first function executes in the if condition, compiler is throwing a syntax error.
Here's my script.
def hi():
return 10,20
def hello(a):
if a:
print "asd"
if a,b=hi() : hello(a)
The error is thrown at "=" in the if condition. How to solve this. Or is there any alternative to perform this in one liner?