MCQs
Total Questions : 13
| Page 2 of 2 pages
Answer: Option B. -> 12y12y1212x12
The first 100 occurences of the given substring are replaced.
Answer: Option A. -> {97: 49, 98: 50, 99: 51}
maketrans() is a static method so it's behaviour does not depend on the object from which it is being called.
Answer: Option A. -> abcd
The function translate expects a dictionary of integers. Use maketrans() instead of doing the above.