How to print this pattern,using if statement and for loop in python ...

How to print this pattern,using if statement and for loop in python ...