#!/usr/bin/python def hw1(pin, pout): fin = open(pin, "r"); # open in file fout = open(pout, "w"); # open out file for line in fin.readlines(): # line by line for char in line: # char by char fout.write(">" + char + "<\n") # write to out file # this runs the function #hw1("in.txt", "out.txt");