print(exec("5 + 5"))
its not printing 10 but prints None instead. I'm sure exec basically executes a code.
print(exec("5 + 5"))
its not printing 10 but prints None instead. I'm sure exec basically executes a code.
exec returns None. You should probably use the eval() in this case