I have a list, for example ['exa', 'mp', 'l', 'e']
.
I need to work with each element to hexlify it. How do I want to do it? At first, I want to get each element somehow and then do hex(element). How do I get it? Or may be I can just hexlify the whole list?
Thanks in advance.
I want to say that I tried str(listname)
, but it just outputs "['exa', 'mp', 'l', 'e']"
which doesn't fulfill my expectations.