Skip to content
Snippets Groups Projects
4.py 119 B
Newer Older
hacker717's avatar
hacker717 committed
from itertools import accumulate

for string in accumulate([[i] for i in input().split()]):
    print(" ".join(string))