[Tutor] learning to programming questions part 1

keith papa keithadu at live.com
Wed Jun 25 01:23:48 CEST 2014

1. Hi am new to python and I have a few questions: Why if you want to write multiple comment you use triple quotation marks and not the #?
2. I found this code to be interesting to me because it printed an output of [1,2,3,4,5,6,7] and not [1,2,3,4:4,5,6,7] why is that?
Insert two or more elements to an existing list:1
>>> a= [1,2,3,4,7]>>> a[4:4] = [5,6]>>> print a[1,2,3,4,5,6,7]

S: Quora 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140624/525c6346/attachment-0001.html>

More information about the Tutor mailing list