TypeError: cannot perform reduce with flexible type
pythonコードをはしらせ、以下のようなエラーが出た場合、
TypeError: cannot perform reduce with flexible type
intやstrに注意するべき。
自分の場合、ある関数にint型の引数を与えるべきところにstr型を与えてしまい、このようなエラーが出た。
関数に適切な引数を与えているかをもう一度確認してほしい。
reduce()にかんしては以下の記事を参照。
https://techacademy.jp/magazine/18844
reduce() in Python - GeeksforGeeks