Vidyalelo
Python · Q160

MCQs for Python Strings: Exam

Programming · Python · question 160

Q160

What will be the output of the following Python code? print('cba'.maketrans('abc', '123'))

A.
{97: 49, 98: 50, 99: 51}
Answer
B.
{65: 49, 66: 50, 67: 51}
C.
321
D.
123

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board