3 ms·
nice! Mine was similar to olefoo's: x = "416d65726963612043616e20436f646520" ''.join([chr(int(y, 16)) for y in [x[l:l+2] for l in range(0, len(x), 2)]]) I do
by Patrick_Devine 13y ago
nice! Mine was similar to olefoo's:
x = "416d65726963612043616e20436f646520"
''.join([chr(int(y, 16)) for y in [x[l:l+2] for l in range(0, len(x), 2)]])
I do think it's funny that they (erroneously?) put the extra space on the end of the string. If you read the press release for the bill I don't think the 20 is supposed to be there.