Medium
Two Files at Once
Write each input word to
src.txt on its own line. Then open src.txt for reading and dst.txt for writing in one with statement, copying only words longer than 3 letters. Print dst.txt (or none).Input
One line of words.
Output
Lines or none.
Sample 1
Input
a bcd efgh ijklm
Output
efgh ijklm
Sample 2
Input
tea
Output
none
Output appears here