[Tutor] Return problems

2018-04-07 Thread Roger Lea Scherer
So I've examined my educational material, I've perused the python documentation and for the life of me I can't figure out why return doesn't print a result in the IDE. I use print, the program acts as expected. What am I missing? import math from decimal import Decimal def findHypot(a, b):

Re: [Tutor] Return problems

2018-04-07 Thread Alan Gauld via Tutor
On 07/04/18 01:50, Roger Lea Scherer wrote: > So I've examined my educational material, I've perused the python > documentation and for the life of me I can't figure out why return doesn't > print a result in the IDE. I use print, the program acts as expected. What > am I missing? The fact that

Re: [Tutor] Return problems

2018-04-07 Thread Steven D'Aprano
On Fri, Apr 06, 2018 at 05:50:35PM -0700, Roger Lea Scherer wrote: > So I've examined my educational material, I've perused the python > documentation and for the life of me I can't figure out why return doesn't > print a result in the IDE. I use print, the program acts as expected. What > am I