Fix the code to abbreviate Python's version (#2618)
Fix the code to abbreviate Python's version (#2618)

This breaks for Python >= 3.10

Co-authored-by: Álvaro Mondéjar Rubio <b026bd536d126ff1793e183dbff47284834af183@gmail.com>
mkdocs/mkdocs,mkdocs/mkdocs,mkdocs/mkdocs