Skip to main content
1 / 2
metropolis
  • 6,705
  • 2
  • 6
  • 16
>>> [len(i)-(i.index(None)+1) if None in i else len(i) for i in zip(*listA)]
[4, 0, 1, 4]
metropolis
  • 6,705
  • 2
  • 6
  • 16