eval()

PHOTO EMBED

Sun Jan 30 2022 12:42:59 GMT+0000 (Coordinated Universal Time)

Saved by @marcpio

# built-in function eval() takes a string and evaluates it using the Python interpreter
eval('1 + 2 * 3')
>> 7

import math
eval('math.sqrt(5)')
>> 2.2360679
content_copyCOPY