0
Subtraction
How do I subtract the value of the first element in the array from the value in the last element of the array without typing (ages[7] â ages[0] ?
4 Answers
+ 1
I mean, that isn't too complicated (and there are no other ways), what is your problem with that
0
there may be n elements in a list.
print(ages[-1] - ages[0])
0
im trying to figure out how to complete it without going against the prvovided instructions.
0
a[0] - a[a.length-1]