Examveda

What will be the output of the following Python code snippet?
print('abef'.partition('cd'))

A. ('abef')

B. ('abef', 'cd', ")

C. ('abef', ", ")

D. error

Answer: Option C


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python