Challenge for Collections
Challenge
You will be given an array (or "list") of numbers ar
. Create and print another array of length 2 that just contains the first and last number in the original array.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.