Return None for number
Input
set_to_none(7)
Output
None
The function should return None regardless of the provided value.
Full lesson preview
Learn how to return None from a function and understand how None is used as a value in Python.
Problem statement
Task
Examples
Input
set_to_none(7)
Output
None
The function should return None regardless of the provided value.
Input
set_to_none('hello')
Output
None
Even a string input should result in None being returned.
Input format
Output format
Constraints
Samples
Input
set_to_none(100)
Output
None
Regardless of the input, the function returns None.