Python throws typeerror: can’t multiply sequence by non-int of type ‘float’ when you try to multiply a string with float value. Although you can multiply a string with int value but except that no other type is supported.

We get this situation when we take input from user and do computation over it. The inputs are always in string type, no matter if a digit is entered, it will be treated as string. It’s your job to typecast it to your required type like in this case, its float.

#python #python error #python list #python numpy #python string #python-short

Python TypeError: Can't Multiply Sequence By Non-int Of Type 'float'
1.85 GEEK