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

Ken G. beachkidken at gmail.com
Fri Apr 29 20:30:26 EDT 2016


On 04/29/2016 07:40 PM, Alan Gauld via Tutor wrote:
> 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.
>
>
Gosh, been using double quotes since the late eighties and thus, a hard 
habit
to break when encourage to use single quote mark in Python. Thanks for the
reminder of "it" being a possible double single quote when encountering a
double quote at various times.

Ken



More information about the Tutor mailing list