LearnPy Hub
← Context Managers problems
Easy

Closed After the Block

Write the input to c.txt with with open(...) as f. After the block print f.closed, then print the length of the text you wrote.

Input

One line.

Output

Two lines.

Sample 1

Input
hello
Output
True
5

Sample 2

Input
Python is fun
Output
True
13
solution.py
Output appears here
Closed After the Block · Python practice problem · LearnPy Hub