Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 03 Dec, 10:46:39

Here is an example of an embedded IDE where the student can write and execute Python code to print “Hello World!” to the terminal:

```html <!DOCTYPE html>

Python IDE

Python IDE

Lesson 1: Hello World!

Write a Python program to print "Hello World!" to the terminal.

Output:



    
    


```

This HTML code sets up an embedded IDE using the Ace editor library. The student can write their Python code in the editor, and when they click the “Run” button, the code is executed using the eval() function. The output is displayed in the <pre> element with the id “output”.

To complete the first Python lesson and print “Hello World!” to the terminal, the student can simply write the following code in the editor:

python print("Hello World!")

When they click the “Run” button, the output will be displayed below the editor, showing “Hello World!” as the result.