1.

What is the output of the following? print('abcdefcdghcd'.split('cd', 2))

A. [‘ab’, ‘ef’, ‘ghcd’].
B. [‘ab’, ‘efcdghcd’].
C. [‘abcdef’, ‘ghcd’].
D. none of the mentioned
Answer» B. [‘ab’, ‘efcdghcd’].


Discussion

No Comment Found