What does the following produce? maketrans('ABC','123') print('a'.maketrans('ABC','123')
A. {97: 49, 98: 50, 99: 51}
B. {65: 49, 66: 50, 67: 51}
C. {97: 49}
D. 1
Answer:A
What does the following produce? maketrans('ABC','123') print('a'.maketrans('ABC','123')
A. {97: 49, 98: 50, 99: 51} B. {65: 49, 66: 50, 67: 51} C. {97: 49} D. 1
Explanation: Because maketrans() is a static method, its behaviour is independent of the object that calls it.