[Tutor] Sorting a list in ascending order [RESOLVED]

Alan Gauld alan.gauld at yahoo.co.uk
Fri Apr 29 19:40:14 EDT 2016


On 29/04/16 23:58, Ken G. wrote:

>> print ''.join(list1) #making it again as a single string
>>
> 
> Thanks, Meena, that is great! I changed your last line to:
> 
>      print "".join(list1)  and it came out as below:
> 
>      0511414453
> 
> Another quotation mark was needed.

No it wasn't. Meena used two single quotes, you used
two double quotes. Both will work. But the two single
quotes can look like a single double quote depending
on your font choices. So double quotes in this case
are probably less ambiguous.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list