# 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)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter