Emad Nawfal (عماد نوفل) wrote:
Hi Tutors,How can I extract a specific sublist (??) from a nested list, for example,
The same as the way you extract other objects from non-nested list
if I want to extract the sublist ["ADJ", "good"],
nested_list[1][2]
or the bigger sublist ["NP",["DET", "The"],["ADJ", "good"],["NOUN", "man"]]
nested_list[1] _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor