News
We can see in this pattern, all stars are present at the boundary of the pattern. And filled with spaces inside the boundary. “For Loop” and “If-Else” Condition will help to print this Hollow ...
Here's the code for that: for i in range(0,10): for j in range(0, i+1): print("*", end='') print() By reversing the count on the outer loop, you can flip the triangle vertically. Padding the output of ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results