LearnPy Hub
← File Handling problems
Easy

Characters in a File

Write the input line to text.txt. Read it back and print how many characters it has.

Input

One line.

Output

One integer.

Sample 1

Input
hello
Output
5

Sample 2

Input
Python is fun
Output
13
solution.py
Output appears here
Characters in a File · Python practice problem · LearnPy Hub