Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
String to hexadecimal conversion
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Praveena P, post: 3627197"] I was thinking of using dictionary like this: hex_to_decimal = {"1":"1", "2":"2", "3":"3", "4":"4", "5":"5", "6":"6", "7":"7", "8":"8", "9":"9", "A":"10", "B":"11", "C":"12", "D":"13", "E":"14", "F":"15", "0":"0"} Extracting one character at a time and converting to decimal, and then using the decimal numbers generated for the further calculations.... Would there be a simpler way to do it? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
String to hexadecimal conversion
Top