After execute code in knime python script node got error like knime user error: output table'0' must be of type knime.api.Table or knime.api., Batch output table but got None. Did you assign the output table.

@Rohit_208 welcome to the KNIME forum. Maybe you can check if the data in and out is correct.

Also maybe you can provide the whole code in a readable form as a separate file or preformated.