title: How to open a file in ternary in python?
body: <p>I am an amateur python coder. I was wondering if there was a way to open a file in ternary? It would really help to know soon. Something like this but ternary:</p>
  
  <pre><code>with open("C:/Users/jfamily/Documents/NJ_Science_Fair/binary_open_test.txt", 
  "rb") as binaryfile :
  data = bytearray(binaryfile.read())
  print(data)
  </code></pre>