This commit is contained in:
parent
ae6414896d
commit
846f489d7b
1 changed files with 8 additions and 0 deletions
8
easy/number_of_senior_citizens.py
Normal file
8
easy/number_of_senior_citizens.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# https://leetcode.com/problems/number-of-senior-citizens
|
||||
from typing import List
|
||||
|
||||
|
||||
class Solution:
|
||||
def countSeniors(self, details: List[str]) -> int:
|
||||
return len(list(filter(lambda x: int(x[11:13]) > 60, details)))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue