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?
>>>names = [‘Amir’, ‘Bear’, ‘Charlton’, ‘Daman’]
>>>print(names[-1][-1])

What will be the output of the following Python code?
>>>names = [‘Amir’, ‘Bear’, ‘Charlton’, ‘Daman’]
>>>print(names[-1][-1])
a) A
b) Daman
c) error
d) n

Answer: d
Explanation: Execute in the shell to verify.

Join The Discussion