-2 in python
# assuming you were not looking for the number -2
# -2 as an index to an array-like object (as a list) will return
# its second-to-last element
# Here is an example
l = [1,27,34,5,6,7,5,84,289,63,52]
print(l[-2])
>>> 63
-2 in python
# assuming you were not looking for the number -2
# -2 as an index to an array-like object (as a list) will return
# its second-to-last element
# Here is an example
l = [1,27,34,5,6,7,5,84,289,63,52]
print(l[-2])
>>> 63
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us