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:
- I signed up for replit.com
- I replaced the username in the code below with my @coderfairy Replit username.
- I replaced the replit name (project name) with CoderFairyPythonTest.
- On WordPress, I added the following code in an HTML block while editing a page.
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.