0
Could you find where it went wrong?
Check this my code, and you will know what's wrong : https://code.sololearn.com/cXi2NahnoOkI/?ref=app
3 Antworten
+ 2
https://code.sololearn.com/cJ8CBl7KP4Gm/?ref=app
Hpoe it will help you.
read the docstrings below the code to know what was wrong.
+ 3
you are iteratîng the string hexstr from left to right, but you are supposed to iterate from right to left ^^
to easily fix you code, reverse the hexstr at start of the function ;)
anyway, your code could be improved a lot (turn upper the string at start, use ascii code to compute hex digits values rather than iterating over a tuple...), and python provide already conversion function utils ;P
+ 1
Thank you so much...I'm not really understand about List Slicing.