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
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor