Vidyalelo
Python · Q154

MCQs for Python Strings: Exam

Programming · Python · question 154

Q154

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

A.
('cd')
B.
(")
C.
('cd', ", ")
D.
(", 'cd', ")
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board