Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Exercise: A Sum of Zero

Sumit Rawal answered on May 16, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • add zero before a single number
  • Solution Review: A Sum of Zero

  • Exercise: A Sum of Zero

    0

    You must implement the check_sum() function which takes in a list and returns True if the sum of two numbers in the list is zero. If no such pair exists, return False.

    svg viewer

    Sample Input

    [10, -14, 26, 5, -3, 13, -5]

    Sample Output

    True

    Coding Challenge#

    There are several ways of approaching this problem. However, we urge you to try it with loops.

    If you feel stuck, you can always refer to the solution review in the next lesson. 

    Popularity 1/10 Helpfulness 1/10 Language python
    Source: Grepper
    Tags: python sum zero
    Link to this answer
    Share Copy Link
    Contributed on May 16 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.