If you want to verify "AB.12" but "ABx12" is also passing, check if the dot is being specified as a literal character. In Python's regular expressions, . usually matches any character except a newline ...
If you want to get a browser game running as quickly as possible, my own measurements show that JavaScript requires fewer steps.When I built the same number-guessing game in both JavaScript and Python ...