key = input()
a = list(str(key))
print(a)
Does anyone know how to change that a list to get hex numbers in there? Example:
key = "abc"
>> ["a", "b", "c"]
But instead of those letters hex numbers.
Thanks.
>Solution :
Use ord to get the int representation of a character, and hex to get the hex representation of that int.
>>> [hex(ord(c)) for c in "abc"]
['0x61', '0x62', '0x63']