Advertisement
simeonshopov

Repeat string

Feb 10th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. words = input().split()
  2. result = ''
  3.  
  4. for word in words:
  5.     length = len(word)
  6.     result += word * length
  7.  
  8. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement