1.

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

A. [‘ab’, ‘ef’, ‘gh’].
B. [‘ab’, ‘ef’, ‘gh’, ”].
C. (‘ab’, ‘ef’, ‘gh’)
D. (‘ab’, ‘ef’, ‘gh’, ”)
Answer» C. (‘ab’, ‘ef’, ‘gh’)


Discussion

No Comment Found