Simple function (before generators)


TODO: probably not that interesting


examples/generators/simple_function.py
def number():
    return 42

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

examples/generators/simple_function_multiple_return.py
def number():
    return 42
    return 19
    return 23

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