I am trying to do some serial input and output operations, and one of those is to send an 8x8 array to an external device (Arduino). The pySerial library requires that the i
in Python 3.x, You can use bytes and str like below.
bytes
str
>>> bytes('foo'.encode()) b'foo' >>> a = bytes('foo'.encode()) >>> str(a.decode()) 'foo'