SyntaxFix
Write A Post
Hire A Developer
Questions
The worst way:
>>> def hex_to_int(x): return eval("0x" + x) >>> hex_to_int("c0ffee") 12648430
Is using eval in Python a bad practice?