Exec() VS Eval() Explained In Python Tutorial 2023
What is the difference between exec() and eval() in Python, and how can we use them in our scripts? Well I’m here to teach you all of that today!
▶ Learn Python professionally:
https://www.indently.io
▶ Follow me on Instagram:
https://www.instagram.com/indentlyreels
▶ Join the chat on Discord:
https://discord.gg/u89bkX4ch5
00:00 Intro
00:15 eval()
01:34 Building a full calculator
02:29 exec()
03:59 Be careful
04:14 exec() does not return
04:39 Major side effect
06:08 Conclusion
Comments are closed.