Python 3: Input in cmd to return functions
Python 3: Input in cmd to return functions I'm currently working my way through "Learn Python the Hard Way" and got to the first exercise about functions. It's simply creating a few functions and printing them out like in the previous examples in the book`. Code: def print_two(*args): arg1, arg2 = args print("arg1: %r, arg2: %r" % (arg1, arg2)) def print_two_again(arg1, arg2): print("arg1: %r, arg2: %r" % (arg1, arg2)) def print_one(arg1): print("arg1: %r" % (arg1)) def print_none(): print("I got nothing.") print_two("Zed","Shaw") print_two_again("Zed","Shaw") print_one("First!") print_none() Output in cmd: C:Users[USER]Google DrivePythonLearn Python the Hard Way>python ex18.py arg1: 'Zed', arg2: 'Shaw' arg1: 'Zed', arg2: 'Shaw' arg1: 'First!' I got nothing. I want to play around a bit with this, so instead of just gi...