Run python script in Uipath and return arguments

Hi community

Is there any way for me to return output arguments (variables) from my Python script?
Example: I need to run a python script that returns an array of numbers, I need this array for the rest of my flow

@amanda.gondim

One way is you write the data from python to a text file and then read it in UiPath and split to make an array

cheers

@amanda.gondim,

Hope this will help you to get started.

Python script
image

UiPath code:

Output:
image

Sample Code:
PythonTest.zip (3.3 KB)

Thanks,
Ashok :slight_smile: