Exercise: Check Sum

Let's learn how to check for a sum in a list.

We'll cover the following

Problem statement #

Implement the check_sum() function which takes in a list and an integer as input.

check_sum(list, num) returns True if the sum of any two numbers in the list is equal to num. If no such pair exists, return False.

Get hands-on with 1200+ tech skills courses.