b1=int((70+80+90)/3)
b2=int((80+85+95)/3)
b3=int((90+70+80)/3)
list1=['a1',70,80,90,b1]
list2=['a2',80,85,95,b2]
list3=['a3',90,70,80,b3]
str1=" ".join('%s' %i for i in list1)
str2=" ".join('%s' %i for i in list2)
str3=" ".join('%s' %i for i in list3)
mylist=["%s\n"%str1,"%s\n"%str2,"%s\n"%str3]
def function5():
myfile=open("abc.txt",'w')
myfile.writelines(mylist)
myfile.close()
function5()