Q. Find the output of the below code.

Code:
string=’abcderbct’
print  (string.partition(‘bc’))
(‘a’, ‘bc’, ‘derbct’)
  • (A) ('a', 'bc', 'derbct')
  • (B) ('a', 'der', 't')
  • (C) ('abc', 'derbc', t')
  • (D) ('a', 'bcder', 'bct')
πŸ’¬ Discuss
βœ… Correct Answer: (A) ('a', 'bc', 'derbct')

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
181
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate