19 lines
355 B
Python
Raw Normal View History

2021-04-19 20:24:26 +00:00
def printTwo(*args):
arg1, arg2 = args
print(f"arg1: {arg1}, arg2: {arg2}")
def printTwoAgain(arg1, arg2):
print(f"arg1: {arg1}. arg2: {arg2}")
def printOne(arg1):
print(f"arg1: {arg1}")
def printNone():
print("No arguments here")
printTwo("Ganome", "Mary")
printTwoAgain("Ganome", "Mary")
printOne("Single Argument")
printNone()