Logic behind the number and stars pattern

the number of rows= n, I’m unable to understand the logic for the number of columns

Hey @mankaran89, takine row_number in 0 based indexing, meaning first row has row_number =0 and second_row have row_number = 1 and so on.

for ix in range(0,2*(row_number)-1):
   print("*", end= ' ')

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.