Have a look at how the interface is managed in this Python - Arduino demo
Note how the Python program waits for the Arduino to reset.
You may also find useful ideas in Serial Input Basics
...R
Have a look at how the interface is managed in this Python - Arduino demo
Note how the Python program waits for the Arduino to reset.
You may also find useful ideas in Serial Input Basics
...R