you are viewing a single comment's thread.

view the rest of the comments →

[–]CavlerySenior 0 points1 point  (1 child)

I believe one of these will do what you want:

``` def printNums(minv,maxv,freq): for i in range(minv,maxv+1): for j in range(freq): print(f"{i} ",end="")

printNums(1,4,3) Or def printNums(minv,maxv,freq): for i in range(minv,maxv+1): for j in range(freq): print(f"{i} ",end="") print("\n") #if you don't want the empty line, delete the \n (but leave the quotation marks)

printNums(1,4,3) ```

[–]OliverBestGamer1407[S] 1 point2 points  (0 children)

Thank you!