What will be the output of the following Python code snippet?
print('abcdefcdghcd'.split('cd', -1))
print('abcdefcdghcd'.split('cd', -1))A. ['ab', 'ef', 'gh']
B. ['ab', 'ef', 'gh', "]
C. ('ab', 'ef', 'gh')
D. ('ab', 'ef', 'gh', ")
Answer: Option B

Join The Discussion