Kernel Function Example In Python A String