easy +10 pts

Read the tail node value

Return the last value or None when the list is empty.

Implement `tail_value(values: list)` returning the tail payload or `None` for an empty list.

Constraints

0 ≤ list lengths ≤ 10_000 unless noted.

Example

>>> tail_value(...)
# see tests
10 points ~12 min

Recent Submissions

No submissions yet — hit Run Tests to try!

Hints

Work on paper with a tiny list first.
Match the function signature exactly.
Python 3
All tests passed!
Test Results
Press Ctrl+Enter or click Run Tests to execute your code.