Python 3.9: Eval

preview_player
Показать описание
Welcome to another Python 3.9 tutorial video, this video is about eval.

Eval is just short for evaluate and the eval function takes an expression in string form ,for example an expression can be 1+ 2 or a print statement, so eval takes an expression as a string and then returns the value, so if we pass '1 + 2' to eval it will return 3, and if we pass 'print('Hello')' it will display hello on the console, basically you can run python code with eval.

Make Eval safe to use:

(Affiliate Link, Helps the Channel)

Рекомендации по теме