window.ENTITIES={'/api/snippets/python/python%20count%20numbers%20less%20than%20x%20in%20list':[{"result":true,"message":null,"batch":{"type":"python","name":"python count numbers less than x in list","items":[{"id":"1GLL4D","type":"python","name":"python count numbers less than x in list","content":"my_list = [1, 2, 3, 4, 5]\n\n# count numbers that are less than 3\nresult = sum(x < 3 for x in my_list)\n\nprint(result) # 2","source":"","author":{"id":"20wdyD","name":"Teilsa","avatar":"1629131110828__20wdyD__w40px_h40px.jpg","points":1105,"role":"BASIC"},"creationTime":1640631601000,"updateTime":null,"removalTime":null}]}}]};