1.

What is the output of the following? print('abcdefcdgh'.partition('cd'))

A. (‘ab’, ‘cd’, ‘ef’, ‘cd’, ‘gh’)
B. (‘ab’, ‘cd’, ‘efcdgh’)
C. (‘abcdef’, ‘cd’, ‘gh’)
D. error
Answer» C. (‘abcdef’, ‘cd’, ‘gh’)


Discussion

No Comment Found