Re: [Tutor] learning to programming questions part 1

2014-06-24 Thread Alan Gauld
On 25/06/14 00:23, keith papa 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 #? These are technically not the same as comments, they are documentation strings. The Python help system will find and

Re: [Tutor] learning to programming questions part 1

2014-06-24 Thread Danny Yoo
> 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. Sorry! "strong" should be "string". ___ Tutor maillist - Tutor@python.org To unsubscr

Re: [Tutor] learning to programming questions part 1

2014-06-24 Thread Danny Yoo
On Jun 24, 2014 4:55 PM, "keith papa" 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() funct

[Tutor] learning to programming questions part 1

2014-06-24 Thread keith papa
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 element