with open('lista.txt','r')as f:
    lista1=f.readline()
a=(lista1)
with open('lista1.txt','w') as f:
    f.write(str(a))
b=sorted(lista1)
with open('lista2.txt','w') as f:
     f.write(str(b))
c=sorted(lista1,reverse=True)
with open('lista3.txt','w') as f:
     f.write(str(c))
d=len(lista1)
with open('cardinal.txt','w') as f:
     f.write(str(d))
e=max(lista1)
with open('max.txt','w') as f:
     f.write(str(e))
f=min(lista1)
with open('min.txt','w') as f:
     f.write(str(e))
lista1.extend([111])
with open('list4.txt','w') as f:
     f.write(str(lista1))
lista1.remove(111)
lista1.insert(2,'222')
with open('lista5.txt','w') as f:
     f.write(str(lista1))
166e33afa5f932e356039f0019f30b01e9255294
<mask token>

with open('lista.txt', 'r') as f:
    lista1 = f.readline()
<mask token>
with open('lista1.txt', 'w') as f:
    f.write(str(a))
<mask token>
with open('lista2.txt', 'w') as f:
    f.write(str(b))
<mask token>
with open('lista3.txt', 'w') as f:
    f.write(str(c))
<mask token>
with open('cardinal.txt', 'w') as f:
    f.write(str(d))
<mask token>
with open('max.txt', 'w') as f:
    f.write(str(e))
<mask token>
with open('min.txt', 'w') as f:
    f.write(str(e))
lista1.extend([111])
with open('list4.txt', 'w') as f:
    f.write(str(lista1))
lista1.remove(111)
lista1.insert(2, '222')
with open('lista5.txt', 'w') as f:
    f.write(str(lista1))

with open('lista.txt', 'r') as f:
    lista1 = f.readline()
a = lista1
with open('lista1.txt', 'w') as f:
    f.write(str(a))
b = sorted(lista1)
with open('lista2.txt', 'w') as f:
    f.write(str(b))
c = sorted(lista1, reverse=True)
with open('lista3.txt', 'w') as f:
    f.write(str(c))
d = len(lista1)
with open('cardinal.txt', 'w') as f:
    f.write(str(d))
e = max(lista1)
with open('max.txt', 'w') as f:
    f.write(str(e))
f = min(lista1)
with open('min.txt', 'w') as f:
    f.write(str(e))
lista1.extend([111])
with open('list4.txt', 'w') as f:
    f.write(str(lista1))
lista1.remove(111)
lista1.insert(2, '222')
with open('lista5.txt', 'w') as f:
    f.write(str(lista1))

with open('lista.txt','r')as f:
    lista1=f.readline()
a=(lista1)
with open('lista1.txt','w') as f:
    f.write(str(a))
b=sorted(lista1)
with open('lista2.txt','w') as f:
     f.write(str(b))
c=sorted(lista1,reverse=True)
with open('lista3.txt','w') as f:
     f.write(str(c))
d=len(lista1)
with open('cardinal.txt','w') as f:
     f.write(str(d))
e=max(lista1)
with open('max.txt','w') as f:
     f.write(str(e))
f=min(lista1)
with open('min.txt','w') as f:
     f.write(str(e))
lista1.extend([111])
with open('list4.txt','w') as f:
     f.write(str(lista1))
lista1.remove(111)
lista1.insert(2,'222')
with open('lista5.txt','w') as f:
     f.write(str(lista1))