ChocoPy, a restricted subset of Python 3, was designed for use in CS164 (Programming Languages and Compilers) at UC Berkeley. While ChocoPy is a subset of Python, the designers used a light touch—the goal was for the language “to be expressive enough to write non-trivial programs in,” according to the project whitepaper. It also mentioned that, “In particular, we wanted to support an object-oriented paradigm with sufficient complexity to illustrate important nuances of static type checking and efficient code generation.”
article: https://www.techrepublic.com/article/how-chocopy-uses-python-and-risc-v-to-teach-compiler-creation/