Not sure I understand well, but let say I did.. list[list.index('a')+1]
Le 14:59, Ahmed Shamim a écrit :
list = [ 'a', '1', 'b', '2'] what would be the logic, if I input a to get output 1.
-- http://mail.python.org/mailman/listinfo/python-list
Not sure I understand well, but let say I did.. list[list.index('a')+1]
Le 14:59, Ahmed Shamim a écrit :
list = [ 'a', '1', 'b', '2'] what would be the logic, if I input a to get output 1.
-- http://mail.python.org/mailman/listinfo/python-list