Skip to content

Glossary: Coding with AI Assistants

eval()

Also written: eval

A Python function that runs text as code. On user input it is dangerous because a user can type code that deletes files or sends data; convert with `int()` or `Decimal()` instead.

Where the book teaches it

Related terms

Secret