[Tutor] Pythonwin

Adam Vardy Adam Vardy <anvardy@roadrunner.nf.net>
Wed Dec 11 17:53:01 2002


Wednesday, December 11, 2002, 3:29:02 PM, you wrote:

>> At 11:56 2002-12-11 -03-30, Adam Vardy wrote:
>>How do I do that?

File ->> New perhaps?

I am trying to run this. Goes to the same menu. And bottom of screen
just says Exception raised.  Program still seems good to me. I thought
it would give more detailed explanation.

I haven't actually reached the chapter on exceptions.

I could locate a Help section on PythonWin.  It starts off though
about Modules and Objects. not apropos. The only documentation there
was a like a page or two. I thought you'd get explanations for all the
File...Tools menu system.


-+-+-+-+-+-+-+-+-+-+-+

L=[1,2,4,8,16,32,64]
X=5

found = i = 0
while i< len(L):
  if 2 ** X==L(i): break
  else:
    i=i+1

##if found:
  print 'at index',i
else:
  print X, 'not found'


-- 
Adam Vardy