’ <’ not supported between ‘str’ and ‘float’ . And there is no option to change the input data type to float. And cannot change the data type in python also
@Jenin It looks like you are using the GH_CPython plugin, which is no longer maintained, and is obsolete in Rhino 8 since CPython is directly provided there without additional plugins.
Can you try moving your code to a “Script” component in Grasshopper in Rhino 8 (or the _ScriptEditor in Rhino if you are not using Grasshopper)?