Hi, all,
<div><br></div><div>Lately I am giving some presentations to my colleagues about the python language. A new internal project is coming up which will require the use of python.</div><div><br></div><div>One of my colleague asked an interesting:</div>

<div><br></div><div><i>If Python use indentation to denote scope, why it still needs semi-colon at the end of function declaration and for/while/if loop?</i></div><div><br></div><div>My immediate response is: it allows us to fit statements into one line. e.g. if a == 1: print a</div>

<div><br></div><div>However I do not find it to be a particularly strong argument. I think PEP8 does not recommend this kind of coding style anyway, so one-liner should not be used in the first place!</div><div><br></div>

<div>Is there any other reasons for use of semi-colon in python?</div><div><br></div><div><br></div><div>Cheers</div><div><br></div><div> </div>