I run a python script from a php script and i want to php take return value from python(return value is a list). I use exec() function for running python. 
How can i do that? Thx
You can print your result in JSON format and the exec() function will return the string. This string can be used to retrieve your value using any JSON decoder.
Take return value from python script from php