Printing Patterns In Python Using For Loop