How do I remove spaces from automatic output after python print statement


Recently, when using python, I found a lower detail and then I didn’t know how to solve it. For example, the following code

for i in range(6):
    for j in range(i):
        print '*',

Will output such a paragraph

* *
* * *
* * * *
* * * * *

As you can see, there is a space after each * and I think it should be output by the print statement itself. So how do you remove this space and output it like this:


for i in range(6):
      print '*'*i