Find a Nth highest or lowest integers in a given series of integers using Python

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 88
from System import *
from System.Collections.Generic import *
from System.Linq import *

class Program(object):
def Main(args):
lstInts = List[int](1, 206, 34, -4, 590, 61, 78, 8, 9, 180, 237)
minNum = lstInts.Min() #lowest number
maxNum = lstInts.Max() #highest number
Console.WriteLine("Min = {0} , Max = {1}", minNum, maxNum)
Console.ReadKey(True)

Main = staticmethod(Main)


/*
Min = -4 , Max = 590
*/

Comments or Responses

Login to post response