Post

@PythonPr The correct answer is d) TypeError.
Explanation:
a is a float (1.0)
b is a string ("2")
Python does not allow adding a float and a string directly using +
So print(a + b) raises a TypeError because the operand types are incompatible.
English

@PythonPr In python you can not add float and string Together...because python dynamic type language so option D is the correct answer
English

@PythonPr TypeError.
Python won’t add a float and a string just to be polite.
English

@PythonPr d. TypeError, Floats and Strings cannot be concatenated.
English

@PythonPr Eso es TypeError de cabeza. Sumar float con string, clásico error de manual, Python ni lo intenta.
Español






















