Python built-in function
A function that is always available in Python without importing anything, such as print, len, input, int and range.
In more detail
Built-ins live in a module called builtins that Python searches last when looking up a name. They are not keywords, so you can accidentally hide one by using its name for your own variable.
Related terms
- shadowing — Using a name that already means something, such as list or str, for your own variable, which hides the original in that part of the program.
- function — A named, reusable block of code that takes inputs, called arguments, and can return a result.
- keyword — A word reserved by a language for its own syntax, such as if and return in Python or SELECT and WHERE in SQL.
Taught in
- What A Program Really Is — Hands-on Python: Complete Video Course & Book
- Types And Functions, A Whirlwind Tour — Hands-on Python: Complete Video Course & Book
- Literals, Identifiers And Keywords — Hands-on Python: Complete Video Course & Book
- Dunder Methods, And Making Objects Pythonic — Hands-on Python: Complete Video Course & Book
- The Exception Family Tree — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Interpreter, Compiler, And What Counts As Syntax — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Parameters, Arguments And Scope — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Handlers, args, raise And assert — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Exception Classes Of Your Own — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Exceptions Sprint — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Methods And The self Parameter — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Special Methods: __str__, __eq__ And Friends — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- List Comprehensions, Filtered And Nested — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Lambdas, map() And filter() — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep