read variables from com5 python

hello guys, i run a project and i have some variables from sensors. i print them with serial.print in serial monitor.. Can i take this data with a python script in order to use them in other project. i have wrote a script in python in order to read data in COM5, but i dont take any result..

Can i take this data with a python script in order to use them in other project.

You can't read from the Serial Monitor with any kind of script. If you want to read from the serial port with a script, you must close the Serial Monitor application.

I wrote a demo of Python - Arduino communication here. It may give you some ideas.

...R