What Was Your First Programming Language?
|
07-09-2015, 07:16 AM
Post: #94
|
|||
|
|||
RE: What Was Your First Programming Language?
(07-09-2015 06:42 AM)Thomas Klemm Wrote: PS: In Python there's no need to put a semicolon at the end of each line. Good points, thanks, Thomas! As you point out, there's no need to test for both > and < in the central loop; if the code gets there, the guess can't equal the number, so if it's not greater it must be less. As to the semicolons: Damn! Old habits die hard. I'll go back and fix that. --- Les [http://www.lesbell.com.au] |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)