Retrieving output from Run Python Script

I am trying to extract the output from print statements within my code. I am wondering what the best way to go about this is.


As it is a python code, print statement do nothing here in UiPath, you can use return statements for every function… Or you can try building a dictionary and return the dictionary from the code and print it in UiPath looping through the length…