Python: pattern numbers and stars -2

sir what is the mistake in my code

@qudsiya python syntax is wrong , also where i is incremented