Run
# Given string x = 'Apple' # Given count (n) n = 4 # Repeat string for n times x_repeated = '' for i in range(4): x_repeated += x print(f"Original String : {x}") print(f"Repeated String : {x_repeated}")
Output