Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

List not calable

The following code doesn't work since List[i][j] seems not to be recognized as an integer

cand=["A","B","C","D"]
List=[[],[0,3],[0,1,3],[0]]
L=[[cand(List[i][j]) for j in range(len(i))] for i in range(len(List))]

List[1][1] = 3 so I was persuaded that I can call cand(List[1][1]) but i seems that it dosn't work.

Need a little help

List not calable

The following code doesn't work since List[i][j] seems not to be recognized as an integer

cand=["A","B","C","D"]
List=[[],[0,3],[0,1,3],[0]]
L=[[cand(List[i][j]) for j in range(len(i))] for i in range(len(List))]

List[1][1] = 3 and its type is integer so I was persuaded that I can call cand(List[1][1]) but i seems that it dosn't work.

Need a little help