Examveda

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

A. ('cd')

B. (")

C. ('cd', ", ")

D. (", 'cd', ")

Answer: Option D


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python