Python: List comprehension list of lists
Use this:
[[number+1 for number in group] for group in x]
Or use this if you know map:
[map(lambda x:x+1 ,group) for group in x]
Use this:
[[number+1 for number in group] for group in x]
Or use this if you know map:
[map(lambda x:x+1 ,group) for group in x]