can you write a compiler in python code example

Example 1: python online compiler

# some best python compilers are:
https://repl.it/  # best online compiler
https://www.onlinegdb.com/online_python_compiler/
https://www.tutorialspoint.com/execute_python_online.php/
https://www.programiz.com/python-programming/online-compiler/

Example 2: online python compiler

Repl.it allows users to write code and build apps and websites using a browser. Additionally, Repl.it allows users to share projects through various ways. They also host "jams", coding competitions based on a certain theme.