What will be the output of the following Python code? [code]print('abcdefcdgh'.partition('cd'))[/code]

What will be the output of the following Python code?
Code:
print('abcdefcdgh'.partition('cd'))
A. (‘ab’, ‘cd’, ‘ef’, ‘cd’, ‘gh’)
B. (‘ab’, ‘cd’, ‘efcdgh’)
C. (‘abcdef’, ‘cd’, ‘gh’)
D. error
 

Tìm kiếm

Back
Top