Q. What is the output of the following program :

Code:
print 'abcefd'.replace('cd', '12')
  • (A) ab1ef2
  • (B) abcefd
  • (C) ab1efd
  • (D) ab12ed2
πŸ’¬ Discuss
βœ… Correct Answer: (B) abcefd
Explanation: in abcefd , cd is not present so there will not be any change.
Explanation by: Mr. Dubey
in abcefd , cd is not present so there will not be any change.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
314
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate