# this is like your scripts with argv
def print_two(args):
arg1, arg2 = args
print(f"arg1:{arg1}, arg2: {arg2}")
# this just takes one argument
def print_one(arg1):
print(f"arg1:{arg1}")
# this one takes no argument
def print_none():
print?("I got nothin',")
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