Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53201
| Date | 2013-08-28 20:38 -0400 |
|---|---|
| From | Ned Batchelder <ned@nedbatchelder.com> |
| Subject | Re: semicolon at end of python's statements |
| References | <1377735506.18906.15.camel@debian> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.336.1377736726.19984.python-list@python.org> (permalink) |
On 8/28/13 8:18 PM, Mohsen Pahlevanzadeh wrote: > Dear all, > > I'm C++ programmer and unfortunately put semicolon at end of my > statements in python. > > Quesion: > What's really defferences between putting semicolon and don't put? There is no difference. The semicolon is unnecessary in Python. If you include them, people will know that you are still thinking in another language. Full disclosure: you can separate statements on a line with semicolons, but this practice is strongly discouraged. --Ned. > Yours, > Mohsen >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: semicolon at end of python's statements Ned Batchelder <ned@nedbatchelder.com> - 2013-08-28 20:38 -0400
csiph-web