import time

def getResult(x):
    quickResult = x * 2

def verboseResult():
    time.sleep(5)
return quickResult * 2
return quickResult, verboseResult
quickResult, verboseResult = getResult(2)
print(quickResult)
print(verboseResult())
Pythonic way to efficiently handle variable number of return args