回答編集履歴

1

間違い訂正

2022/07/23 09:28

投稿

otn
otn

スコア84645

test CHANGED
@@ -5,7 +5,7 @@
5
5
  x = list(itertools.zip_longest(*m))
6
6
  print(x)
7
7
 
8
- y = list(map(lambda w: list(filter(lambda v: v, w)), x))
8
+ y = list(map(lambda w: list(filter(lambda v: v is not None, w)), x))
9
9
  print(y)
10
10
  ```
11
11
  `x`か`y`のどっちか欲しい方。