Python + PuTTY - Multiple commands by PuTTY terminal

Multi tool use
Python + PuTTY - Multiple commands by PuTTY terminal
hey I've got a program compiled, running on Nucleo managed by PuTTY terminal. To comunicate with it - program using simple commands which functionality I cannot look at. How can I run multiple commands together at the same time without typing it in console over and over?
how can I send this commands using Python serial?
What I wish to achive is by Python script:
using the command below does not trigger the effect,
that the same command in putty does.
text = "use 3 1".encode()
ser.write(text)
actualy seems like Nucleo program does not understend python script at all but somehow the same command typed in PuTTY terminal works just great.
Same port, same baudrate
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.