Python Commented
\n# 6208. Number of Valid Clock Times\n# just generate all xx:yy\n# and count the matches\n\nclass Solution:\n    def countTime(self, time: str) -> int:\n      
```\n# 6208. Number of Valid Clock Times\n# just generate all xx:yy\n# and count the matches\n\nclass Solution:\n    def countTime(self, time: str) -> int:\n        match = lambda s, time: all(time[i] == \'?\' or s[i] == time[i] for i in range(5))\n        s = lambda i: str(i) if i >= 10 else \'0\' + str(i)\n\n        return sum(match(s(i) +\':\'+ s(j), time) for i in range(24) for j in range(60))\n```
[]