Exec() VS Eval() Explained In Python Tutorial 2023

Опубликовано: 20 October 2024
на канале: Indently
19,623
777

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!

▶ Become job-ready with Python:
https://www.indently.io

▶ Follow me on Instagram:
  / indentlyreels  

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