What is the output when we execute list(“hello”)?
A. [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
B. [‘hello’]
C. [‘llo’]
D. [‘olleh’]
Answer:A
What is the output when we execute list(“hello”)?
A. [‘h’, ‘e’, ‘l’, ‘l’, ‘o’] B. [‘hello’] C. [‘llo’] D. [‘olleh’]
Explanation:execute in the shell to verify. 3. Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?