ternary operator

Andrew Koenig ark at research.att.com
Fri Feb 7 11:19:41 EST 2003


David> I think that's POOR programming practice!

Then how would you write the following loop?

        i = 0;
        while i < len(n) and x[i] != y:
                i += 1

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list