Q:

Predict the output: List = [True, 50, 10] List.insert(2, 5) print(List, \"Sum is: \", sum(List))

0

Predict the output

List = [True, 50, 10] List.insert(2, 5) print(List, "Sum is: ", sum(List))

  1. [True, 50, 10, 5] Sum is: 66
  2. [True, 50, 5, 10] Sum is: 65
  3. [True, 50, 5, 10] Sum is: 66
  4. TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

[True, 50, 5, 10] Sum is: 66

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now