Hard
Many Resources
Read n file names. Create each file with its own name as content. Then open all of them at once using
contextlib.ExitStack and print the contents joined by +, followed by whether every file is closed after the block.Input
n, then n names.
Output
Two lines.
Sample 1
Input
2 a.txt b.txt
Output
a.txt+b.txt True
Sample 2
Input
1 only.txt
Output
only.txt True
Output appears here