Return statement (without expression)

PHOTO EMBED

Sun Jan 30 2022 06:55:32 GMT+0000 (Coordinated Universal Time)

Saved by @marcpio

# a return statement without an expression exits the function and immediately returns to the caller; the remaining lines of the function don't run
def print(s, n):
  if n <= 0:
    return
  print(s)
content_copyCOPY