Source Code:
(back to article)
def example(arg = None): if arg is None: print("arg not provided") else: print("arg provided: ",arg) example() # arg not provided example("Provided arg") # arg provided: Provided arg
Result:
Report an issue