Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated September 2025
Definition
The "import" keyword in Python is used to bring in external modules or libraries into your code. It allows you to access pre-existing functionality and use it in your program.
Related terms
Module: A module is a file containing Python definitions and statements that can be imported and used in other programs.