Post Reply 
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]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: What Was Your First Programming Language? - Les Bell - 07-09-2015 07:16 AM



User(s) browsing this thread: 1 Guest(s)