Easy
Two Files in One with
Write the input line to
src.txt. Then use one with statement that opens src.txt for reading and dst.txt for writing, and copy the text reversed. Print dst.txt.Input
One line.
Output
One line.
Sample 1
Input
hello
Output
olleh
Sample 2
Input
Python
Output
nohtyP
Output appears here