Is it possible to put two types of variable as InputParameters in Invoke Python Method?

I have a python code which has two input variables with two different data type. How can I match these two variable in UiPath?

Hi @JackyLeung123

Can you share the screenshot what are the variable datatypes?

Regards

image
image
image
Here are the details of variables.

Hi @JackyLeung123

You can use Invoke Python Method activity two times and Get Python object also two times for the Type Argument

I don’t really understand how it works as I have two input parameters in a python function.

E.g
def function(name, choices = ):

@JackyLeung123

Can you share your whole python code

image
I can share the input parameters but I cannot share the whole script here.