用自定义函数封装,问一下后面部分怎么修改?

def inputfasta(file_name):
#读取fasta文件
RNA=""
for line in open(file_name):
if not line.startswith(">"):
RNA=RNA+line.strip()
return RNA

#encoding:utf-8
def transcodon(frame,RNA,codon_table):
#截取密码子,转换为氨基酸组成的蛋白质序列
prot=""
#运用for循环语句同时里面包含if条件函数
for i in range(frame,len(RNA),3):
codon=RNA[i:i+3]
if codon in codon_table:
if codon_table[codon]=="STOP":
prot=prot+"*"
else:
prot=prot+codon_table[codon]
else:
#handle too short codons
prot=prot+"-"
return prot
##main 加入密码表
codon_table = { "次为氨基酸密码表,由于不能发,所以就不发了,也不影响"}
#文件在我的电脑李换了一种格式,但输出结果和答案一样。
file_name="E:\其他\py\A06662-RNA.txt"
RNA=inputfasta(file_name)

for frame in range(3):
print "Reading frame"+str(frame+1)
prot=transcodon(frame,RNA,codon_table)
#按每行48个字符和符号的方式输出蛋白质序列
i=0
while i<len(prot):
print prot[i:i+48]
i=i+48

img


询问一下,真的不知道怎么设置调用函数了,运用def之类的,找不到自变量就写不出来