Vidyalelo
Python · Q105

MCQs for Python Strings: Exam

Programming · Python · question 105

Q105

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

A.
('ab', 'ef')
B.
('abef')
C.
('ab', 'cd', 'ef')
Answer
D.
2

Answer: Option C

Solution

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