On Jun 24, 2014 4:55 PM, "keith papa" <[email protected]> wrote:
>
> 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 #?
>
In certain places, string literals are treated as documentation that you
can access with the help() function. Triple quotes are a way of writing a
strong literal. Comments, on the other hand, are ignored: they don't
contribute to documentation.
> 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?
>
What do you think the meaning of line two of the program is? That is, what
do you think the following line means?
a[4:4] = [5,6]
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor