Question 2:
(answer)
answer
#!/usr/bin/python
def outer():
i=1
def inner():
print "i=%s" % str(i)
i += 1
inner()
inner()
outer()
Question 3:
(answer)
answer
#!/usr/bin/python
def add_evil(data=[]):
data.append(666)
return data
print add_evil()
print add_evil(["hi there"])
print add_evil()
print add_evil()