Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f=open("date.in", "r")
- g=open("date1.out", "w")
- h=open("date2.out", "w")
- y=[]
- for x in f:
- y.append(x)
- z=y
- z.sort()
- for i in z:
- g.write(z[i])
- g.write(" ")
- for i in y:
- h.write(y[i])
- h.write(" ")
- oglindit = 0
- while y[i]!=0:
- oglindit = oglindit*10 + y[i]%10
- y[i] = n//10
- h.write(oglindit)
- h.write("\n")
- f.close()
- g.close()
- h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement