LearnPy Hub
← Inheritance & Special Methods problems
Easy

__len__

Write a Playlist class holding song names, with add(song) and __len__. Read songs until END and print len(playlist).

Input

Lines, then END.

Output

A count.

Sample 1

Input
a
b
c
END
Output
3

Sample 2

Input
END
Output
0
solution.py
Output appears here
__len__ · Python practice problem · LearnPy Hub