SyntaxStudy
Sign Up
Home Python Exercises Python Functions

Python Functions

Beginner

Complete the Python function definitions.

To define a function: greet(name):

A function with a type hint: def add(a: , b: int) -> int:

A one-line anonymous function: x: x * 2

To return multiple values: return (returns a tuple).