help how to sort a list in order of 'n' in python without using inbuilt functions??

Chris Angelico rosuav at gmail.com
Sat May 25 05:14:57 EDT 2013


On Sat, May 25, 2013 at 7:10 PM, Carlos Nepomuceno
<carlosnepomuceno at outlook.com> wrote:
> ----------------------------------------
>> Date: Sat, 25 May 2013 19:01:09 +1000
>> Subject: Re: help how to sort a list in order of 'n' in python without using inbuilt functions??
>> From: rosuav at gmail.com
>> To: python-list at python.org
> [...]
>> Very good. You are now in a position to get past the limitations of a
>> restricted-environment eval/exec. Avoiding builtins is actually a fun
>> skill to hone.
>>
>> ChrisA
>
>
> I'm glad he didn't ask for a Pseudo-RNG without built-ins! ;)

def random_number():
    return 7

ChrisA



More information about the Python-list mailing list