Sail E0 Webinar
Question
What is the output of the following?print('a'.maketrans('ABC', '123'))
Options:
A .  {97: 49, 98: 50, 99: 51}
B .  {65: 49, 66: 50, 67: 51}
C .  {97: 49}
D .  1
Answer: Option A


maketrans() is a static method so it's behaviour does not depend on the object from which it is being called.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers