(status_code, expect_sum)
sum status code digits
        e.g. 400 => 4, 201 => 3
sum status code digits
        e.g. 400 => 4, 201 => 3
sum status code digits e . g . 400 = > 4 201 = > 3
def sum_status_code(status_code, expect_sum):
    """ sum status code digits
        e.g. 400 => 4, 201 => 3
    """
    sum_value = 0
    for digit in str(status_code):
        sum_value += int(digit)

    assert sum_value == expect_sum
def sum_status_code ( status_code , expect_sum ) : sum_value = 0 for digit in str ( status_code ) : sum_value += int ( digit ) assert sum_value == expect_sum