Vidyalelo
Python · Q45

MCQs for Python Strings: Exam

Programming · Python · question 45

Q45

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

Answer: Option D

Solution

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