O'Reilly logo

Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython by Richard Hightower

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Statistics Application

Remember the house price sample application we created in Chapter 4? You might want to go back and refresh your memory because we're going to be using it to continue our Python/Java comparison. I'm not going to repeat the information you'll find there, particularly the breakdown and explanation of the code, but I will highlight the important functions, as I did in Chapter 4, and show you the full code examples. A suggestion: Place a bookmark at the section on the house price example in that chapter for easy referral.

getRange()

The getRange() function iterates through a list of numbers passed to it to calculate the minimum and maximum values in a list. It returns these values, with their range, in a tuple. Here's one ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required