Example - return the value
Input
create_number_variable()
Output
42
The function should create a variable holding 42 and return it.
Full lesson preview
Practice assigning and returning a numeric variable. Learn how to store numbers in variables and return them from functions.
Problem statement
Task
Examples
Input
create_number_variable()
Output
42
The function should create a variable holding 42 and return it.
Input format
Output format
Constraints
Samples
Input
create_number_variable()
Output
42
The function returns the stored numeric value.