Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = file("input.txt", "r").readline ()
- num1 = ''
- num2 = ''
- for i in xrange(len(f)):
- if f[i] == " ":
- num1 = int(f[0:i])
- num2 = int(f[i-1::-1])
- f = file("output.txt", "w").write(str(num1 + num2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement