Solved why is my python output surrounded by b' '

Clone / X
June 27, 2020 at 06:03:17
Specs: w7 64bit, i3 8G
why is my python output surrounded by b' '

Here's the code below the ===== line.

The output is:
b'16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM'

==============================
import base58
h = "00010966776006953D5567439E5E39F86A0D273BEED61967F6"
un = bytes.fromhex ( h )
en = base58.b58encode ( un )
print ( en )

=====================

M2


See More: why is my python output surrounded by b

Reply ↓  Report •

#1
June 27, 2020 at 08:22:29
✔ Best Answer
Because you are printing an array of bytes.

Reply ↓  Report •

#2
June 27, 2020 at 09:50:16
ijack,

Thank you. It didn't take you long to nail that.

Would you like to do a small job for pay?

=====================

M2


Reply ↓  Report •

#3
June 27, 2020 at 10:00:28
Thanks for the offer, but no thanks.

Reply ↓  Report •

Related Solutions

#4
July 7, 2020 at 03:16:38
Not obvious what an apk DL has to do with win7.
But I'll stay tuned

=====================

M2


Reply ↓  Report •

Ask Question