Print Pattern Using One Loop In Python