1.

Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?(a) 5(b) 4(c) None(d) ErrorI had been asked this question in an interview for internship.My doubt stems from Lists in chapter Lists & List Comprehension of Python

Answer»

The CORRECT ANSWER is (a) 5

Explanation: EXECUTE in the SHELL and VERIFY.



Discussion

No Comment Found

Related InterviewSolutions