Q. Find the output of the below code.
Code:string=’abcderbct’ print (string.partition(‘bc’)) (‘a’, ‘bc’, ‘derbct’)
β
Correct Answer: (A)
('a', 'bc', 'derbct')
string=’abcderbct’ print (string.partition(‘bc’)) (‘a’, ‘bc’, ‘derbct’)
You must be Logged in to update hint/solution