On Wed, Apr 09, 2014 at 10:44:32AM -0400, John J. McDonough wrote: > On Wed, 2014-04-09 at 09:54 -0400, Byron Jeff wrote: >=20 > > A statement ends at the end of the line. It's how the majority of code = in > > any language is written. Python simply codes for the common case (one > > statement per line) and gives facilities for line continuation when nee= ded. >=20 > Except the continuation isn't explicit like it is in bash. The > statement simply ends at the end of the line unless it doesn't. >=20 > In C the statement ends at the ; >=20 > In bash the statement ends at the end of the line unless the last > character is a \ That's exactly how Python works. It uses backslash as an explicit continuation character. >=20 > In FORTRAN-60 the statement ends at the end of the line unless the next > line has a C in column 6 >=20 > In COBOL the statement ends at the . >=20 > In Algol the statement ends at the ; >=20 > In Ada the statement ends at the ; >=20 > In Java the statement ends at the ; >=20 > In Pascal the statement ends at the ; >=20 > In Python, you just gotta guess. No. Actually you don't. Python has explicit continuation (using backslash) and implitic continuation with an unmatched parenthesis, bracket, or brace. BAJ >=20 > --McD >=20 >=20 > --=20 > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 Byron A. Jeff Chair: Department of Computer Science and Information Technology College of Information and Mathematical Sciences Clayton State University http://faculty.clayton.edu/bjeff --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .