On Sat, 24 Jun 2006 21:24:33 +0200, SuperHik wrote: > 1st question: > > If a make an exe with i.e. py2exe, can I get any kind of error/bug > report from the exe file saved into a file error.log and how?
Write the program to write a log file as it runs? > 2nd question: [snip] > if x>10 and y>10 and z>10 and summ(tritup(x,y,z)): print "OK" Others have already suggested you use the built-in sum() function. I'll suggest you don't need it at all, because it is redundant. If the sum is zero, either all three values are zero or at least one of the values is negative. In either case the first test will fail. There are no circumstances where each of x, y and z are greater than 10 but the sum is zero; nor are there any circumstances where the sum is zero but x, y and z are still all greater than 10. -- Steven. -- http://mail.python.org/mailman/listinfo/python-list