Why does my Python function return "None" instead of the expected value ...

Why does my Python function return "None" instead of the expected value ...

More to explore

Based on this image's title: “Why does my Python function return "None" instead of the expected value ...