Get a value from List by index
Given a List and an index, return a value from the List based on the given index.
Sample Code:
def indexEle(lst,i):
# Enter your logic here...
Examples:
Input: [1,2,3],1
Output: 2
Explanation: The index of the first element is 0.
Input: [1,2,3],2
Output: 3
Explanation: The index of the first element is 0.