semicolon at end of python's statements
Steven D'Aprano
steve at pearwood.info
Thu Aug 29 00:27:30 EDT 2013
On Thu, 29 Aug 2013 04:48:26 +0430, 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?
It's about the same as writing this:
x = 1
pass
y = 2
pass
z = x**2 + y**2
pass
print z
pass
except you save three keystrokes per LOC.
--
Steven
More information about the Python-list
mailing list