Friday, April 2, 2010

Python Exercise 2b


"Input a list of ints. Stop when a non-int is entered. Find max and min of the list."

This one was also fairly easy. Python has a built-in method for finding the max of a list. That seemed a bit too easy, so I took an extra few minutes to do it myself by saving the vals to a new array, in order of size.


Click to see Solution:

1 comment:

custom writing service reviews said...

I have never had any experience setting up IT security. But I’m sure your post helped other people. Thanks for sharing your experience with python exercise.