LearnPy Hub
← File Handling problems
Easy

Write Many Lines at Once

Read words on one line. Write them to words.txt with writelines(), one per line. Read the file back and print the number of characters in it (including newlines).

Input

One line.

Output

One integer.

Sample 1

Input
a bb ccc
Output
9

Sample 2

Input
hello
Output
6
solution.py
Output appears here
Write Many Lines at Once · Python practice problem · LearnPy Hub