Examveda

What will be the output of the following Python code snippet?
print('abcd'.translate({97: 98, 98: 99, 99: 100}))

A. bcde

B. abcd

C. error

D. none of the mentioned

Answer: Option D


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python