KnowledgeBoat Logo

Computer Science

Which of the following expressions will result in an error message being displayed when a program containing it is run?

(a) 2.0/4

(b) "3" + "Hello"

(c) 4 % 15

(d) int("5")/float("3")

(e) float("6"/"2")

Python Data Handling

29 Likes

Answer

(a) No Error

(b) No Error

(c) No Error

(d) No Error

(e) This will cause an error of unsupported operand types as using division operator on string types is not allowed in Python.

Answered By

14 Likes


Related Questions