title: Raspberry Pi - How to print hex value?
body: <p>I m using Python in Raspberry Pi and my packet is in hexadecimal value like <code>"0x750x010x010x060x000x08"</code>. I want serial communication between UART and Raspberry Pi so I wrote a program using Python in Raspberry Pi and I'm checking data on terminal but when I selected ASCII option in terminal it showing below output:</p>
  
  <pre><code>75
  01
  01
  06
  00
  08
  </code></pre>
  
  <p>And when I selected hex option in terminal it is not showing above output. Now I want above output when I will select hex option but not ASCII option. So how to get that? If I need to convert it into hex or byte or any other than tell me the code in Python.</p>