Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

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: d
Explanation: The output is bcdd since no translation is provided for d.

Join The Discussion