Replit Python Tutorial

					a = 5
b = 7
print("Python Fairy: a + b is " + str(a + b))

A simple Python script on Replit that prints “Hello World!”.  In the Replit frame below, click the Play (Run) button to see the Python script run.  You can also type and run your own Python code.  After clicking the Run button, try typing in the following code (or Right-click > click Paste) and then press enter:

Below are the steps that I used to get this to work:

  1. I signed up for
  2. I replaced the username in the code below with my @coderfairy Replit username.
  3. I replaced the replit name (project name) with CoderFairyPythonTest.
  4. On WordPress, I added the following code in an HTML block while editing a page.
					<iframe height="400px" width="100%" src=""></iframe>

Note: After publishing your Replit (project), a link is given with your username and Replit name that you can paste in the code above to replace steps 2 and 3.

Scroll to Top