回答編集履歴
1
言葉足らずだったので追記
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
綺麗かどうかはわかりませんが。
|
1
|
+
綺麗かどうかはわかりませんが。以下でいかがでしょうか。
|
2
2
|
``` python
|
3
3
|
convert_to_list = lambda x: [x] if isinstance(x, (int, str, float, bool, complex)) else x
|
4
4
|
```
|