DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Functions — Example 88

Quick explanation + ready code for: Functions.

Python Functions Back to examples
Back to language
Syntax: Functions in Python. ID: #88

Code

def add(a,b):
  return a+b
print(add(14, 17))

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.