Understandable If-Else python solution
\nclass Solution:\n    def countTime(self, time: str) -> int:\n        res = 1\n\t\t# split hour and minute digits\n        h1, h2, _ ,  m1, m2 = time\n        
```\nclass Solution:\n    def countTime(self, time: str) -> int:\n        res = 1\n\t\t# split hour and minute digits\n        h1, h2, _ ,  m1, m2 = time\n        \n        if h1 == "?" and h2 == "?":\n            res*=24\n        elif h1 == "?":\n            if int(h2) >=4:\n                res*=2\n            else:\n                res*=3\n                \n        elif h2 == "?":\n            if int(h1) <= 1:\n                res*=10\n            elif h1 == "2":\n                res*=4\n                \n        if m1 == "?" and m2 == "?":\n            res*=60\n        elif m1 == "?":\n            res*=6\n        elif m2 == "?":\n            res*=10\n        \n        return res\n        \n```
['Python', 'Python3']