Skip to ContentMini Arrow Down Icon
  • Codecademy Logo
  • Codecademy Logo
assert
Built-in Functions
Casting
Classes
Collections Module
Command Line Arguments
Comments
Conditionals
Data Types
Dates
Decorators
Dictionaries
Dunder Methods
Errors
Files
Functions
Functools Module
Generators
Glob Module
IDLE
Inheritance
Iterators
JSON Module
Keywords
Lists
Loops
Math Module
Memoization
Modules
Modulo
Operators
OS Path Module
pip
Random Module
Recursion
Regular Expressions
Requests Module
Scope
Sets
Strings
Substrings
Threading
Time Module
Tuples
Unittest Module
Variables
Back to Python
  1. Docs/
  2. Python/
  3. Functools Module

Functools Module

Open IconEdit on GitHub

The functools module contains functions that support a functional programming approach in Python.

The following functions are provided by this module.

Functools Module

reduce()
Returns an aggregated value that results from the application of a passed function to each item in an iterable.

Contributors

  1. Christine_Yang's avatar'
    Christine_Yang
  2. caupolicandiaz0517384890's avatar'
    caupolicandiaz0517384890
Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.
Open IconEdit on GitHub

Learn Python on Codecademy

career path

Computer Science

Beginner friendly,
82 Lessons
course

Learn Python 3

Beginner friendly,
14 Lessons
Open IconEdit on GitHub

Contributors

  1. Christine_Yang's avatar'
    Christine_Yang
    Christine_Yang's avatar'
    Christine_Yang44 contributions
  2. caupolicandiaz0517384890's avatar'
    caupolicandiaz0517384890
    caupolicandiaz0517384890's avatar'
    caupolicandiaz05173848909 contributions

Company

  • About
  • Careers
  • Affiliates
    • Twitter Icon
    • Facebook Icon
    • Instagram Icon
    • Youtube Icon

Resources

  • Articles
  • Blog
  • Cheatsheets
  • Code challenges
  • Docs
  • Projects
  • Videos
  • Workspaces

Support

  • Help Center

Resources

  • Articles
  • Blog
  • Cheatsheets
  • Code challenges
  • Docs
  • Projects
  • Videos
  • Workspaces

Support

  • Help Center

Plans

  • Paid memberships
  • For students
  • Business solutions

Community

  • Forums
  • Chapters
  • Events
  • Discord

Codecademy from Skillsoft

Codecademy from Skillsoft

Subjects

  • AI
  • Cloud Computing
  • Code Foundations
  • Computer Science
  • Cybersecurity
  • Data Analytics
  • Data Science
  • Data Visualization
  • Developer Tools
  • DevOps
  • Game Development
  • IT
  • Machine Learning
  • Math
  • Mobile Development
  • Web Design
  • Web Development

Languages

  • Bash
  • C
  • C++
  • C#
  • Go
  • HTML & CSS
  • Java
  • JavaScript
  • Kotlin
  • PHP
  • Python
  • R
  • Ruby
  • SQL
  • Swift

Career building

  • Career paths
  • Career services
  • Interview prep
  • Professional certification
  • —
  • Full Catalog
  • Beta Content
  • Roadmap

Mobile

  • Download on the App Store
  • Get it on Google Play

Mobile

  • Download on the App Store
  • Get it on Google Play
  • Privacy Policy
  • Cookie Policy
  • Do Not Sell My Personal Information
  • Terms
Made with ❤️in NYC © 2023 Codecademy