1

I have a string of characters

ascst = 'abc'

and I want to know how to convert it into a string of numbers

'097098099'

in the output, every 3 letters is an Ascii character.

097 being a, 098 being b, 099 being c.

Is there any easy way to do this?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
qrani
  • 67
  • 6

0 Answers0