Reading integer from arduino using pyserial
<p>I am sending integer value from arduino and reading it in Python using pyserial 
The arduino code is:</p>

<pre><code>Serial.write(integer)
</code></pre>

<p>And the pyserial is:</p>

<pre><code>ser=serial.Serial ('com3',9600,timeout =1)
X=ser.read(1)
print(X)
</code></pre>

<p>But it doesn't print anything except blank spaces 
Does anyone knows how to read this integer passed from arduino in Python?</p>