Print Pattern Using Nested Loop In Python