def hello (name, age, class_= ''):
	""" explain
	"""
	return "I am {}, and I'm {}",format(name, age)

'''
people = [
			("jane", 23),
			("joe", 25),
			 ("brian", 60), 
			 ("betty", 45)
			 ]	

for name, age in people:
	print hello(name, age)
#use unpacking
for person in people:
 	print hello (*person)
	'''

def super_sum(*args):
	'''takes in variables number of items,
		and returns the sum.
		eg super_sum(10, 20) = 30
		super_sum(10,20,40)= 70
		super_sum(1, 4, 5, 6, 7) = 23
	'''
	total = 0
	for i in args:
		total += i 
	return total

print super_sum(10,20)
print super_sum(1,4,5,7)
a = [10, 40, 60]
print super_sum(*a)

					 
def hello_again(**kwargs):
	return "I am {}, and I'm {}".format(kwargs['name'], kwargs['age'])

print hello_again(name='joe', age='20')
print hello_again(age=20, name='jane')	

other_people = [
			{'name':'joe', "age": 98},
			{"name":'jane', 'age': 60},
			{"name":'trump', 'age':28}
		]	

joe = {'name': 'joe','age': 98}
print hello_again(**joe)
print hello_again(name='joe', age=98)
for person in other_people:
 	hello_again
