LearnPy Hub
← Comprehensions problems
Medium

Rows With a Big Total

Read n rows of integers, then a limit k. Print a list of the rows (as lists) whose sum is greater than k, using one comprehension.

Input

n, the rows, then k.

Output

A Python list.

Sample 1

Input
3
1 2
5 5
0 0
3
Output
[[5, 5]]

Sample 2

Input
1
4
10
Output
[]
solution.py
Output appears here
Rows With a Big Total · Python practice problem · LearnPy Hub