Examveda

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

A. {97: 49, 98: 50, 99: 51}

B. {65: 49, 66: 50, 67: 51}

C. 321

D. 123

Answer: Option A


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python