Help Python Activity Documentation how to guide

I’m learning how to invoke python scripts on studio with this documentation.
It did not provide a sample python script so I wrote one myself from the description.
math_op.txt (128 Bytes)

Now, I’m stuck on step 6:
Screenshot 2024-04-11 at 11.36.15 AM

Full Error:
Argument ‘Parameters’: BC36754: ‘Integer()’ cannot be converted to ‘IEnumerable(Of Object)’ because ‘Integer’ is not derived from ‘Object’, as required for the ‘Out’ generic parameter ‘T’ in ‘Interface IEnumerable(Of Out T)’. The selected value is incompatible with the property type.

Where did I go wrong?

I suck at finding posts: I found the solution here

Hey @Aisya_Yahaya It looks like you’re trying to pass integers {2, 3} to the ‘Parameters’ argument, but it expects an enumerable collection of objects. You might need to explicitly convert your integers to objects before passing them. Try using something like {Object(2), Object(3)} instead.

Regards,
Ajay Mishra

@Aisya_Yahaya,

Here is the solution:

Thanks,
Ashok :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.