Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53620
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re: how does not work nested comment in python? |
| Date | 2013-09-04 12:08 +0000 |
| References | <551579b9-951e-4f46-bb10-488d39eac6a7@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.39.1378296555.5461.python-list@python.org> (permalink) |
On 4/9/2013 02:13, vnkumbhani@gmail.com wrote:
> example:
>
> print "hello" # print comment +"world" => single line comment
>>> print "hello" # print comment +"world" => single line comment
hello
> print "hello" '''print comment''' +"world" => multiple line comment
>>> print "hello" '''print comment''' +"world" => multiple line comment
File "<stdin>", line 1
print "hello" '''print comment''' +"world" => multiple line comment
^
SyntaxError: invalid syntax
>>> print "hello" '''print comment''' +"world"
helloprint commentworld
What is your question? The first line has a comment on it, the second
one does not.
--
DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
how does not work nested comment in python? vnkumbhani@gmail.com - 2013-09-03 23:13 -0700 Re: how does not work nested comment in python? Vlastimil Brom <vlastimil.brom@gmail.com> - 2013-09-04 09:55 +0200 Re: how does not work nested comment in python? Dave Angel <davea@davea.name> - 2013-09-04 12:08 +0000
csiph-web