1.

What is the output of the following? print('ab\ncd\nef'.splitlines())

A. [‘ab’, ‘cd’, ‘ef’].
B. [‘ab’, ‘cd’, ‘ef’].
C. [‘ab’, ‘cd’, ‘ef’].
D. [‘ab’, ‘cd’, ‘ef’].
Answer» B. [‘ab’, ‘cd’, ‘ef’].


Discussion

No Comment Found