"""*************************************************************************
    > File Name: ex18_variablesNFunctions.py
    > Author: XidongHuang (Tony)
    > Mail: xidonghuang@gmail.com 
    > Created Time: Thu 29 Sep 23:10:53 2016
 ************************************************************************"""

# -*- coding: utf-8 -*-

# this one is like your scripts with argv
def print_two(*args):
	arg1, arg2, arg3 = args
	print("arg1: %r, arg2: %r, arg3: %r" %(arg1, arg2, arg3))

# ok, that *args is actually pointless, we can just do this
def print_two_again(arg1, arg2):
	print("arg1: %r, arg2: %r" % (arg1, arg2))

# this just takes one argument
def print_one(arg1):
	print("arg1: %r" % arg1)

# this one takes no arguments
def print_none():
	print("I got nothin.")

print("What do you want for args3:")
tempArg = input("> ")
print_two("Zed", "Shaw", tempArg)
print_two_again("Zed", "Shaw")
print_one("First!")
print_none()

57fb550000b9bee8f0b172ee130e479ed537515d
<mask token>


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 nothin.')


<mask token>

<mask token>


def print_two(*args):
    arg1, arg2, arg3 = args
    print('arg1: %r, arg2: %r, arg3: %r' % (arg1, arg2, arg3))


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 nothin.')


<mask token>

<mask token>


def print_two(*args):
    arg1, arg2, arg3 = args
    print('arg1: %r, arg2: %r, arg3: %r' % (arg1, arg2, arg3))


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 nothin.')


print('What do you want for args3:')
<mask token>
print_two('Zed', 'Shaw', tempArg)
print_two_again('Zed', 'Shaw')
print_one('First!')
print_none()

<mask token>


def print_two(*args):
    arg1, arg2, arg3 = args
    print('arg1: %r, arg2: %r, arg3: %r' % (arg1, arg2, arg3))


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 nothin.')


print('What do you want for args3:')
tempArg = input('> ')
print_two('Zed', 'Shaw', tempArg)
print_two_again('Zed', 'Shaw')
print_one('First!')
print_none()

"""*************************************************************************
    > File Name: ex18_variablesNFunctions.py
    > Author: XidongHuang (Tony)
    > Mail: xidonghuang@gmail.com 
    > Created Time: Thu 29 Sep 23:10:53 2016
 ************************************************************************"""

# -*- coding: utf-8 -*-

# this one is like your scripts with argv
def print_two(*args):
	arg1, arg2, arg3 = args
	print("arg1: %r, arg2: %r, arg3: %r" %(arg1, arg2, arg3))

# ok, that *args is actually pointless, we can just do this
def print_two_again(arg1, arg2):
	print("arg1: %r, arg2: %r" % (arg1, arg2))

# this just takes one argument
def print_one(arg1):
	print("arg1: %r" % arg1)

# this one takes no arguments
def print_none():
	print("I got nothin.")

print("What do you want for args3:")
tempArg = input("> ")
print_two("Zed", "Shaw", tempArg)
print_two_again("Zed", "Shaw")
print_one("First!")
print_none()
