Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Take a number from list within list"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:2+4 =



Original Message (ID '64388') By Bill Simpson:
[[-1]] will select the last item in a list and two subscipts will extract an item from a nested list. In[1]:= {4,34,5,{a,b,c}}[[-1,1]] Out[1]= a In[2]:= {4,34,5,{a,b,c}}[[-1,2]] Out[2]= b