Advertisement
Nenogzar

02 repeat string

Mar 6th, 2024
580
0
73 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. txt = input().split()
  2. str_txt = [word * len(word) for word in txt]
  3. print(''.join(str_txt))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement