I
I
Ivan2020-09-02 16:46:12
Python
Ivan, 2020-09-02 16:46:12

How to convert hex to str and vice versa?

Hello, I would like to know how can I convert hex to str and vice versa in python
Code example (it doesn't work):
...
g.BasicColor = hex(open(f"....'","r').read ())
print(str(g.BasicColor))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-09-02
@EHEVIX

ok google, "python hex to string"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question