From: gabriele renzi Date: 2004-04-23T22:24:03+09:00 Subject: Re: find a best version (of a package) il Fri, 23 Apr 2004 21:17:14 +0900, saiph ha scritto:: > >----------------------------------------------- > >how would you write or change this? > > if you're confident that number will be one digit all the time you could just write: >> vv = ['ruby-2.2.5', 'ruby-3.2.6', 'ruby-5'] => ["ruby-2.2.5", "ruby-3.2.6", "ruby-5"] >> vv.max => "ruby-5"