Examveda

What will be the output of the following Python code snippet?
print('abcd'.translate('a'.maketrans('abc', 'bcd')))

A. bcde

B. abcd

C. error

D. bcdd

Answer: Option D


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python