Assert function will verify the condition and if fails it will terminate the program where in verify will check condition and if it fails, it will still continue the execution without terminating it.
Its very useful when we are doing some exception message checks in application