Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
eval is for evaluating code parts like "x+2", "func(x)", "lambda x: pass" or "x**2+2*x+1" but you can't define functions or you can't use if - while... and you can use "eval(expression)" if "lamba: expression" is valid
17th Sep 2018, 7:01 PM
Mert Yazıcı
Mert Yazıcı - avatar