JIT
Building a python teaching website with a structured layout
create a website for teaching python in the webside we have a header in #333 and a sidebar in the left in #333 color and curriculum about python in the sidebar and it shows descripition about each of the content thats is in tha middle
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Python Learning Platform</title>
    <style>
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }
        header {
            background-color: #333;
            color: white;
            padding: 20px;
            text-align: center;
        }
        .container {
            display: flex;
            flex: 1;
        }
        .sidebar {
            background-color: #333;
            color: white;
            width: 250px;
            padding: 20px;
            overflow-y: auto;
        }
        .sidebar h2 {
            border-bottom: 1px solid #555;
            padding-bottom: 10px;
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
        }
        .sidebar li {
            padding: 8px 0;
            cursor: pointer;
            border-bottom: 1px solid #444;
        }
        .sidebar li:hover {
            background-color: #444;
        }
        .content {
            flex: 1;
            padding: 20px;
            background-color: #f5f5f5;
            overflow-y: auto;
        }
        .lesson-content {
            display: none;
        }
        .active {
            display: block;
        }
    </style>
</head>
<body>
    <header>
        <h1>Python Programming Course</h1>
    </header>
    <div class="container">
        <div class="sidebar">
            <h2>Curriculum</h2>
            <ul>
                <li onclick="showLesson('intro')">Introduction to Python</li>
                <li onclick="showLesson('syntax')">Python Syntax</li>
                <li onclick="showLesson('variables')">Variables and Data Types</li>
                <li onclick="showLesson('operators')">Operators</li>
                <li onclick="showLesson('conditionals')">Conditional Statements</li>
                <li onclick="showLesson('loops')">Loops</li>
                <li onclick="showLesson('functions')">Functions</li>
                <li onclick="showLesson('lists')">Lists and Tuples</li>
                <li onclick="showLesson('dictionaries')">Dictionaries</li>
            </ul>
        </div>
        <div class="content">
            <div id="intro" class="lesson-content active">
                <h2>Introduction to Python</h2>
                <p>Python is a high-level, interpreted programming language known for its simplicity and readability. It's widely used in web development, data science, artificial intelligence, and more.</p>
                <p>Python was created by Guido van Rossum and first released in 1991. It emphasizes code readability with its notable use of significant whitespace.</p>
            </div>
            <div id="syntax" class="lesson-content">
                <h2>Python Syntax</h2>
                <p>Python syntax is very clean and easy to understand. Unlike other languages, Python uses indentation to define blocks of code.</p>
                <pre>
# This is a comment
print("Hello, World!")  # This prints a message

if 5 > 2:
    print("Five is greater than two")</pre>
            </div>
            <div id="variables" class="lesson-content">
                <h2>Variables and Data Types</h2>
                <p>Variables are containers for storing data values. Python has no command for declaring a variable - you create one the moment you first assign a value to it.</p>
create a website for teaching python in the webside we have a header in #333 and a sidebar in the left in #333 color and curriculum about python in the sidebar and it shows descripition about each of the content thats is in tha middle
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Python Learning Platform</title>
    <style>
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }
        header {
            background-color: #333;
            color: white;
            padding: 20px;
            text-align: center;
        }
        .container {
            display: flex;
            flex: 1;
        }
        .sidebar {
            background-color: #333;
            color: white;
            width: 250px;
            padding: 20px;
            overflow-y: auto;
        }
        .sidebar h2 {
            border-bottom: 1px solid #555;
            padding-bottom: 10px;
        }
        .sidebar ul {
            list-style: none;
            padding: 0;
        }
        .sidebar li {
            padding: 8px 0;
            cursor: pointer;
            border-bottom: 1px solid #444;
        }
        .sidebar li:hover {
            background-color: #444;
        }
        .content {
            flex: 1;
            padding: 20px;
            background-color: #f5f5f5;
            overflow-y: auto;
        }
        .lesson-content {
            display: none;
        }
        .active {
            display: block;
        }
    </style>
</head>
<body>
    <header>
        <h1>Python Programming Course</h1>
    </header>
    <div class="container">
        <div class="sidebar">
            <h2>Curriculum</h2>
            <ul>
                <li onclick="showLesson('intro')">Introduction to Python</li>
                <li onclick="showLesson('syntax')">Python Syntax</li>
                <li onclick="showLesson('variable')">Variables</li>
                <li onclick="showLesson('datatypes')">Data Types</li>
                <li onclick="showLesson('operators')">Operators</li>
                <li onclick="showLesson('conditionals')">Conditionals</li>
                <li onclick="showLesson('loops')">Loops</li>
                <li onclick="showLesson('functions')">Functions</li>
                <li onclick="showLesson('lists')">Lists</li>
                <li onclick="showLesson('tuples')">Tuples</li>
                <li onclick="showLesson('dictionaries')">Dictionaries</li>
            </ul>
        </div>
        <div class="content">
            <div id="intro" class="lesson-content active">
                <h2>Introduction to Python</h2>
                <p>Python is a high-level, interpreted programming language known for its simplicity and readability. It's widely used in web development, data science, artificial intelligence, and more.</p>
                <p>Python was created by Guido van Rossum and first released in 1991. It emphasizes code readability with its notable use of significant whitespace.</p>
            </div>
            <div id="syntax" class="lesson-content">
                <h2>Python Syntax</h2>
                <p>Python syntax is very clean and easy to understand. Unlike other languages, Python uses indentation to define blocks of code.</p>
                <pre>
# This is a comment
print("Hello, World!")  # This prints a message

if 5 > 2:
    print("Five is greater than two")</pre>
            </div>
            <div id="variable" class="lesson-content">
                <h2>Variables</h2>
                <p>Variables are containers for storing data values. Python has no command for declaring a variable - you create one the moment you first assign a value to it.</p>
                <pre>
x = 5
y = "Hello"
z = 3.14</pre>
            </div>
            <div id="datatypes" class="lesson-content">
                <h2>Data Types</h2>
                <p>Python has various
Preview not available