
Functions in Programming - GeeksforGeeks
Jul 23, 2025 · Functions in programming are modular units of code designed to perform specific tasks. They encapsulate a set of instructions, allowing for code reuse and organization.
What is a Function? - W3Schools
A function holds a piece of code that does a specific task. A function takes some data as input, the code inside the function does something with the data, and then the result is returned.
Welcome to Python.org
Functions Defined The core of extensible programming is defining functions. Python allows mandatory and optional arguments, keyword arguments, and even arbitrary argument lists. More about defining …
Functions - JavaScript | MDN
Jul 8, 2025 · A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and …
What is a function in coding? - California Learning Resource Network
Jul 2, 2025 · In the realm of software development, a function represents a self-contained, reusable block of code designed to perform a specific operation.
Function (computer programming) - Wikipedia
In computer programming, a function (also procedure, method, subroutine, routine, or subprogram) is a callable unit[1] of software logic that has a well-formed interface and behavior and can be invoked …
Call a function - Code.org
When you call a function you are telling the computer to run (or execute) that set of actions. A function definition can be provided anywhere in your code - in some ways the function definition lives …
Computer Programming - Functions - Online Tutorials Library
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing.
Programming - Functions - University of Utah
Functions are "self contained" modules of code that accomplish a specific task. Functions usually "take in" data, process it, and "return" a result. Once a function is written, it can be used over and over and …
What is a Function In Programming? Both Python, Java, and C++
In computer programming, a function is a standalone section of code that completes a single purpose and can be accessed by other program elements. Code can be made more modular and simpler to …