Python remove unwanted characters [string] [closed]

How can the following python string be stripped?

Current output:

b'\x023400050421000000000000000F76\x03'

Wanted output:

023400050421000000000000000F76


Read more here: https://stackoverflow.com/questions/68482314/python-remove-unwanted-characters-string

Content Attribution

This content was originally published by programmeurNED at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: