I am using the following for loop code to print star pattern and the code is working perfectly fine. Here is my code

```
for i in range(1,6):
    for j in range(i):
        print("*", end=" ")
    print()

```

Output of this code is displaying as

```
* 
* * 
* * * 
* * * * 
* * * * * 

```

Now my question is how to print output like

```
         * 
        * * 
       * * * 
      * * * * 
     * * * * * 

```