[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String indexing again
- From: Matthew Wild <mwild1@...>
- Date: Mon, 20 Dec 2010 12:48:38 +0000
On 20 December 2010 12:35, Randy Kramer <rhkramer@gmail.com> wrote:
> For those of us (maybe just me) just starting to watch from the peanut
> gallery, without the long lecture, can you tell me what s[3] does
> indicate--I mean what does the s function (is it a function?) do?
>
s is a string, [] is the indexing operator, s[3] is being used to mean
the 3rd character of s.
Matthew