def f(x): 'my first function' return 2*x**3+1 def avg(x,y): 'return average of x and y' return (x+y)/2 def isSorted(lst): 'return T' for i in range(len(lst)-1): if lst[i] > lst[i+1]: return False return True def copy(fromFile, toFile): infile = open(fromFile, 'r') content = infile.read() infile.close() outfile = open(toFile, 'w') outfile.write(content) outfile.close()