In Python, how do you retrieve the list's last element? Assume the list's title is 'bikes.'
A. [0]bicycles
B. [:-1] Bicycles
C. [lpos] bikes
D. [-1] bicycles
Answer:D
In Python, how do you retrieve the list's last element? Assume the list's title is 'bikes.'
A. [0]bicycles B. [:-1] Bicycles C. [lpos] bikes D. [-1] bicycles
Explanation: bikes[-1]