Python program returning none
<p>The following code (allegedly) returns none.</p>

<pre><code>def addTwo(startingvalue):
    endingvalue = startingvalue + 2 
    return endingvalue

sum1 = addTwo(5)
sum2 = addTwo(52)
print('The results of adding are ', sum1, sum2)
</code></pre>

<p>As people have mentioned in the comments, you had a small typo in one of your function calls which would throw a NameError. But other than that, it works perfectly fine with the following output:</p>

<pre><code>The results of adding are  7 54
</code></pre>

<p>Okay, here's the problem, the code in the question is properly indented, the code in <a href="https://postimg.cc/image/x84h94xtj/" rel="nofollow">your screenshot</a> is improperly indented. In the screenshot lines 6,7 and 8 are indented, which means they're <em>inside</em> the function. Since the function returns on line 3 and is never called, you aren't getting the proper output.</p>

python return