# FAQ: List Comprehension - First Only

This community-built FAQ covers the “First Only” exercise from the lesson “List Comprehension”.

Paths and Courses
This exercise can be found in the following Codecademy content:

## FAQs on the exercise First Only

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

## Join the Discussion. Help a fellow learner on their journey.

Agree with a comment or answer? Like () to up-vote the contribution!

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

1 Like

is it necessary to keep having to put “list” infront of the comprehension, see below:
nested_lists = [[4, 8], [16, 15], [23, 42]]
first_only = list (x for (x, y) in nested_lists)
print (first_only)

2 Likes

Hello, @script0351949381. Welcome to the forum.

No. You can do it like this:

``````nested_lists = [[4, 8], [16, 15], [23, 42]]
first_only = [x for (x, y) in nested_lists]
print (first_only)
``````
3 Likes

seems so obvious now, thanks!

1 Like