Advertisement
simeonshopov

Repeat string

Dec 10th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. word = input()
  2. count = int(input())
  3.  
  4. def repeat(a, n):
  5.     new_word = word * count
  6.     return new_word
  7.  
  8.  
  9. print(repeat(word, count))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement