Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- txt = input().split()
- str_txt = [word * len(word) for word in txt]
- print(''.join(str_txt))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement