onlinecodesimulator/data/lessons.js

28 lines
882 B
JavaScript

export const lessons = [
{
id: 'lesson1',
title: '1. Introduction to Python',
difficulty: 'easy',
content: `
<p>Let's learn some Python..</p>
<p>We'll start with what's called a "Hello World" program to make sure everythings working.</p>
<p>In Python, this is done with the <code>print</code> function.</p>
<ol>
<li>In the code editor below, type <code>print("Hello World")</code></li>
<li>Click the "Run" button to execute your code</li>
<li>You should see "Hello World" printed in the output area</li>
</ol>
`,
doneCondition: (consoleText) => consoleText.includes("Hello World")
},
{
id: 'lesson2',
title: 'Using Interrupts',
difficulty: 'medium',
content: `
<p>Interrupts allow your code to react to pin changes asynchronously.</p>
<p>More content here...</p>
`
}
];