Problem with python script

I got this error when tried to run a script through electroneek activity, Script runs fine on vscode. Variable mentioned “mostrar” is from a function that returns a value within the script
Here is part of the script

Hey Oscar,
In this case, you must check how you send or declare the variables to the function. Attaching an example declaring the variable and value in the py code and also when sending the values from Studio Pro.
time2.zip (2.1 KB)

Best Regards

Thanks for the answer, but in my case the variable is only to operate in an internal process of the script it is not necessary to send it to Studio Pro, that is the reason for my question, it should not give error in electroneek about a variable that will not be used in the bot.

Hi Oscar,
In the attached neek file, I have sent you 2 examples. In one of them the variable is passed from Studio, in the other it is declared in the py code. The return to Studio Pro is optional.

thanks Jorge_RPA examples received, I’m going to test it