# Return to Question

Post Closed as "off-topic" by Daniel Lichtblau, Henrik Schumacher, ciao, user42582, AccidentalFourierTransform
2 Routine cleanup

# Select items in a From the list thatof 3-tuples, how can I select tuples which contain criteriaone for more nines?

InFrom the list: Tuples[{1, 2, 3, 4, 9}, 3]

Tuples[{1, 2, 3, 4, 9}, 3]


Howhow can I select all itemsexactly those 3-tuples that contain "9"one for more nines?

ResultThis is the result I want:

{{1, 1, 9}, {1, 2, 9}, {1, 3, 9}, {1, 4, 9}, {1, 9, 1} ... {9, 9, 4}, {9, 9, 9}}

{{1, 1, 9}, {1, 2, 9}, {1, 3, 9}, {1, 4, 9}, {1, 9, 1}  ... {9, 9, 4}, {9, 9, 9}}


# Select items in a list that contain criteria

In list: Tuples[{1, 2, 3, 4, 9}, 3]

How can I select all items that contain "9"?

Result:

{{1, 1, 9}, {1, 2, 9}, {1, 3, 9}, {1, 4, 9}, {1, 9, 1} ... {9, 9, 4}, {9, 9, 9}}

# From the list of 3-tuples, how can I select tuples which contain one for more nines?

From the list

Tuples[{1, 2, 3, 4, 9}, 3]


how can I select exactly those 3-tuples that contain one for more nines?

This is the result I want:

{{1, 1, 9}, {1, 2, 9}, {1, 3, 9}, {1, 4, 9}, {1, 9, 1}  ... {9, 9, 4}, {9, 9, 9}}

Became Hot Network Question
1

# Select items in a list that contain criteria

In list: Tuples[{1, 2, 3, 4, 9}, 3]

How can I select all items that contain "9"?

Result:

{{1, 1, 9}, {1, 2, 9}, {1, 3, 9}, {1, 4, 9}, {1, 9, 1} ... {9, 9, 4}, {9, 9, 9}}