CSE MCQs :: Python MCQs
-
What is the output of the following?print('xyyxyyxyxyxxy'.replace('xy', '12', 100))
-
What is the output of the following?print('abcd'.translate({'a': '1', 'b': '2', 'c': '3', 'd': '4'}))