【python】TypeError: 'float' object is not iterable といわれた
概要
以下のエラーが発生したためメモ。
TypeError: 'float' object is not iterable
解決策
list(1)やlist(1.0)のようなキャストが発生している場合に発生する。 以下のようにすればOK。
list([1])
以下のエラーが発生したためメモ。
TypeError: 'float' object is not iterable
list(1)やlist(1.0)のようなキャストが発生している場合に発生する。 以下のようにすればOK。
list([1])