Site icon Exam4Training

What is the expected output of the following code?

What is the expected output of the following code?

print(list(‘hello’))
A . hello
B . [h, e, l, l, o]
C . [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
D . [‘h’ ‘e’ ‘l’ ‘l’ ‘o’]
E . None of the above.

Answer: C

Exit mobile version