Login and get codingIn this Bite you complete
find_number_pairs
which receives alist
of numbers and returns all the pairs that sum up toN
(default=10). Return thislist
oftuple
s from the function.So in the most basic example if we pass in
[2, 3, 5, 4, 6]
it returns[(4, 6)]
and if we give it[9, 1, 3, 8, 7]
it returns[(9, 1), (3, 7)]
. The tests check more scenarios (float
s, other values ofN
, negative numbers).Have fun and keep calm and code in Python