for instance:
input=7 -> print : 1 2 3 1 2 3 1
input=2 -> print : 1 2
I've only been able to print the whole "1 2 3" repeated for the input integer with the code below. (input=2 -> print : 1 2 3 1 2 3)
n = int(input())
for i in range(1,n+1):
for num in range(1,4):
print(num, end="")
num += 1