Pattern Printing In Python Using Nested Loop