examples/generators/simple_function.py
from __future__ import print_function

def number():
    return 42

v = number()
print(v)    # 42
examples/generators/simple_function_multiple_return.py
from __future__ import print_function

def number():
    return 42
    return 19
    return 23

print(number()) # 42
print(number()) # 42
print(number()) # 42