id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

count_negative


Given a list of integers, return the count of the negative values.


count_negative([-1, -2, -3]) → 3
count_negative([2, 2, 2, 2, 2]) → 0
count_negative([-5, -3, 4]) → 2

...Save, Compile, Run (ctrl-enter)

def count_negative(list):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 122

Copyright Nick Parlante 2017 - privacy