3 ms·
Something along the lines of... code = 'f"{input()} {x}"' lambda x: eval(code) (Please don't do this)
by staticassertion 6y ago
Something along the lines of...
code = 'f"{input()} {x}"'
lambda x: eval(code)
(Please don't do this)
- linkdd 6y agoYes, I'll stick to using str.format :)
- staticassertion 6y agocode = 'f"here it is {eval(input())}"' (lambda: eval(code))() k, there we go