Question regarding commenting code
Ignacio Vazquez-Abrams
ignacio at openservices.net
Tue Sep 4 12:33:43 EDT 2001
On Tue, 4 Sep 2001, Andrew Gould wrote:
> When adding comments to scripts, can I insert lines of comments inside a
> loop block? For example:
>
> for n in a_list:
> # separate values using spaces as delimiters
> a_line = string.split(n)
> # get the first value
> a_value = a_line[0]
> # print the first value
> print a_value
>
>
> Thanks,
>
> Andrew
Have you tried doing it yet? ;)
--
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list
mailing list