[Tutor] python sorting

Dave Angel d at davea.name
Thu Mar 22 23:08:13 CET 2012


On 03/22/2012 06:01 PM, Sukhpreet Sdhu wrote:
> i want to sort the list formed by two variable taken as raw_input().i have written following code;
> a=raw_input()
> b=raw_input()
> c=a+b
> list=c.split()
> how i can sort the list formed

Do a search on python.org for list + sort.  First match I got:

http://wiki.python.org/moin/HowTo/Sorting

-- 

DaveA



More information about the Tutor mailing list