Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'assignment': 0.07; "subject:' ": 0.07; 'subject:help': 0.08; 'builtin': 0.09; 'subject:using': 0.09; 'python': 0.11; "'n'": 0.16; 'received:74.208.4.195': 0.16; 'subject: \n ': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'print': 0.22; 'header :User-Agent:1': 0.23; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:list': 0.30; 'code': 0.31; 'anyone': 0.31; 'could': 0.34; 'but': 0.35; 'so,': 0.37; 'list': 0.37; 'to:addr :python-list': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'email addr:gmail.com': 0.63; 'more': 0.64; 'received:74.208': 0.68; 'gotten': 0.74; 'homework': 0.84; 'results,': 0.84 Date: Fri, 24 May 2013 08:33:57 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: help how to sort a list in order of 'n' in python without using inbuilt functions?? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:heaf6BGUZpYe5XeQbMPq3pRipy7UTaYHiA3Bgm5K1sM F719FMB1DDBztV0CTF2C4nZXdk5ZQBFLfACnHh7lWipENyFtLJ ro/h1evB2tlWYDqtEcw4E77KQcdadM3xV83J/gO1HF/wg3H/in 9sLGNH86kVw0LQH6POvBRbafSYBZ1163JwbiYfd1Vhgm+dOH9H ++MxdHtqseMlpQ783qafG0uB4fXGj/Ib1wCklVRtA7lbbaL0tv ZOUsJCzn1A7vwyTX0lTi28epd0U3TAl6271F/OenC+GwJWcFVZ XzYPLmLsw5NV/PQ0aNJlJp5PiDWk9HomiH78p9YWPyUSApaG9G uutB0OC7MpI3jJJQ50kM= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369398850 news.xs4all.nl 15940 [2001:888:2000:d::a6]:38764 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45880 On 05/24/2013 04:04 AM, lokeshkoppaka@gmail.com wrote: > i need to write a code which can sort the list in order of 'n' without use builtin functions > can anyone help me how to do? > You could sort, but you couldn't print out the results, so what's the point? In Python 3.3 at least, print() is a built-in function. Is the homework assignment more clearly worded than your summary? And if so, how far have you gotten on it? -- DaveA