"Daniel Mark" <[EMAIL PROTECTED]> writes: > I have a list AAA = [1, 2, 3] and would like to subtract one from list > AAA > so AAA' = [0, 1, 2] > > What should I do?
BBB = [x-1 for x in AAA] -- http://mail.python.org/mailman/listinfo/python-list
"Daniel Mark" <[EMAIL PROTECTED]> writes: > I have a list AAA = [1, 2, 3] and would like to subtract one from list > AAA > so AAA' = [0, 1, 2] > > What should I do?
BBB = [x-1 for x in AAA] -- http://mail.python.org/mailman/listinfo/python-list