can‘t multiply sequence by non-int of type ‘numpy.float64‘

{TypeError}can’t multiply sequence by non-int of type ‘numpy.float64’

Multiplying float64 and tuples raises an error

    a=(2,4,6)
    b=35.6
    c=a*b

The reason is that a is of int type and B is of float type, and the types are inconsistent, so the multiplication operation cannot be performed

The solution is to change the data type to consistent.

    a=(2,4,6)
    b=35
    c=a*b
    print(c)

Read More: