title: creating two byte, two-dimensional array in Python
body: <p>I am new to python programming and I have c and c++ background. I need to create two-dimensional array (Not a list) which each element is two bytes and save it to a file (as a binary file). I learned that if I create a two-dimensional list and use the bytearray function I can save the list to a binary file, but unfortunately the bytearray cannot have more than one byte value. Any hints and guidance would be appreciated.</p>