Online Python Compiler

Run your code online with this amazing tool. Just put your code and click on the "Run Code" button.

def function_1(): # assigning a string as a member of the function object function_1.var = "variable inside function_1" print("function_1 has been called") def function_2(): print("function_2 has been called") print(function_1.var) function_1() function_2()


If the code takes user input, put it here. For multiple inputs, one per line

Using this online Python compiler tool, you can execute Python code online. This tool will help you to start learning Python without installing Python on your machine.

This tool will also help you to make it easier to practice and increase your programming skill in Python.

  • Read our Python tutorials
  • Many programmers and developers may find testing simple code on their machine every time is a heavy wait task. So we are presenting this online compiler to you. Happy coding...!