Re: [Tutor] Python Programming for the absolute beginner 3e, Ch3 Challenge 4

2013-08-10 Thread ALAN GAULD
Also don't know how to do a binary chop, but the book hasn't covered anything  >like that - it has just taught if, else and while,  > >A binary chop is an algorithm. All you need is if/else and while. The algorithm looks a bit like this: while not found        determine the middle value between mi

Re: [Tutor] Map function

2013-08-10 Thread Chris Down
Hi Phil, On 2013-08-10 16:45, Phil wrote: > The Arduino has a map function named "map" which looks like this: > > map(value, 0, 1023, 0, 100) > > The function, in this case, takes an integer value between 0 and > 1023 and returns a number between 0 and 100. Is there a Python > equivalent? The Ard