I am trying to print a string, multiple times together on the same line.
For example: User input = 123 and I need to print it 3 times: 123123123
This is my code that i have tried:
userString = []
if val > 0:
for i in range(val):
print(userString * val, end = " ")
it's giving me a syntax error by the end=""
How can I fix this?