Print Pattern Using Function In Python