Avatar ·

Bytes - string translation

📁 python

  DATA =  .encode () # Bait translation      

I can’t figure out bytes ... No matter how hard I try, python gives me b'hello ' Lines?

If you try with Cyrillic, then everything tus out:

  Data =  .encode ( "" UTF-8 "" ) # b '\ xD0 \ x9f \ xD1 \ x80 \ xd0 \ xb8 \ xd0 \ xb2 \ xd0 \ xb5 \ xd1 \ x82'      

or I have no idea about bytes? Please explain