โŒจ๏ธap computer science principles review

Return Statement

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

A return statement is used in a function to specify the value that should be returned when the function is called. It allows the function to send a value back to the code that called it.

Pep mascot

"Return Statement" also found in: