-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
216 lines (198 loc) · 10.4 KB
/
index.html
File metadata and controls
216 lines (198 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://cdn.jsdelivr.net">
<title>Learn Python Free — For All Ages, Zero Experience Required</title>
<meta name="description" content="Free interactive Python learning site for kids and beginners. 180+ coding problems, guided tutorials, and interview prep — runs in the browser, no login, no installation, no experience needed.">
<meta name="keywords" content="learn python free, python for kids, python for beginners, python no experience, python practice, python interview prep, free python course, learn python online">
<meta name="author" content="hefeicoder">
<!-- Chinese SEO (Baidu) -->
<meta name="keywords" lang="zh" content="免费学Python, Python入门, Python零基础, Python编程练习, Python面试题, 在线学Python, 儿童学编程, Python教程">
<meta name="description" lang="zh" content="免费在线学Python,适合零基础和儿童。180+练习题、互动教程和面试题——无需登录,无需安装,浏览器直接运行。">
<!-- Open Graph (social sharing) -->
<meta property="og:title" content="Learn Python Free — For All Ages, Zero Experience Required">
<meta property="og:description" content="Free interactive Python learning site for kids and beginners. 180+ problems, guided tutorials, and interview prep — no login or installation needed.">
<meta property="og:url" content="https://pythonfreecourse.com">
<meta property="og:type" content="website">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Learn Python Free — For All Ages, Zero Experience Required">
<meta name="twitter:description" content="Free interactive Python learning site for kids and beginners. 180+ problems, guided tutorials, and interview prep — no login or installation needed.">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/theme/monokai.min.css">
</head>
<body>
<!-- View: Level Select -->
<div id="view-level-select" class="view">
<div class="site-header">
<div>
<h1>Python for Everyone — 100% Free</h1>
<p class="subtitle">Kids, beginners, and job seekers welcome. No setup, no login, just code.</p>
</div>
<div class="header-right">
<button id="btn-clear-history" class="btn-danger op-tooltip" data-tip="Resets all solved problems and saved code">Clear History<span class="op-tip-box">Resets all solved problems and saved code</span></button>
<a href="mailto:hefeicoder@gmail.com" class="feedback-link">Feedback? Email us</a>
</div>
</div>
<div id="level-cards" class="level-cards"></div>
</div>
<!-- View: Problems -->
<div id="view-problems" class="view hidden">
<button id="btn-back-levels" class="btn-secondary">← All Levels</button>
<h2 id="problems-heading"></h2>
<p id="problems-subtitle" class="subtitle"></p>
<ul id="problems-list" class="problems-list"></ul>
</div>
<!-- View: Editor -->
<div id="view-editor" class="view hidden">
<button id="btn-back" class="btn-secondary">← Back to Problems</button>
<div class="card editor-card">
<h3 id="editor-title"></h3>
<p id="editor-description" class="editor-description"></p>
<p id="editor-hint" class="editor-hint hidden"></p>
<div id="code-editor" class="code-editor-cm"></div>
<button id="btn-run" class="btn-primary" disabled>Loading Python...</button>
<div id="output-panel" class="output-panel hidden">
<p class="output-label">Output:</p>
<pre id="output-text"></pre>
</div>
<div id="feedback-banner" class="feedback-banner hidden"></div>
</div>
</div>
<!-- View: Tutorial Topics -->
<div id="view-tutorial-topics" class="view hidden">
<button id="btn-back-from-tutorial-topics" class="btn-secondary">← All Levels</button>
<h2 style="margin-top:1rem;">Tutorial</h2>
<p id="tutorial-topics-subtitle" class="subtitle"></p>
<ul id="tutorial-topics-list" class="problems-list"></ul>
</div>
<!-- View: Tutorial (Learn + Practice) -->
<div id="view-tutorial" class="view hidden">
<button id="btn-back-to-topics" class="btn-secondary">← All Topics</button>
<div id="tutorial-topic-nav" class="tutorial-topic-nav"></div>
<p id="tutorial-progress" class="subtitle" style="margin-top:0.5rem;"></p>
<div class="card tutorial-learn-card">
<h3 id="tutorial-topic-title"></h3>
<div class="learn-block">
<span class="learn-label">What is it?</span>
<p id="tutorial-what" class="learn-text"></p>
</div>
<div class="learn-block">
<span class="learn-label">When do you use it?</span>
<p id="tutorial-when" class="learn-text"></p>
</div>
<div class="learn-block">
<span class="learn-label">How does it work?</span>
<pre id="tutorial-example" class="code-example"></pre>
</div>
</div>
<div class="card editor-card">
<p id="tutorial-question-label" class="tutorial-question-label"></p>
<p id="tutorial-question-description" class="editor-description"></p>
<div id="tutorial-code-editor" class="code-editor-cm"></div>
<button id="btn-run-tutorial" class="btn-primary" disabled>Loading Python...</button>
<div id="tutorial-output-panel" class="output-panel hidden">
<p class="output-label">Output:</p>
<pre id="tutorial-output-text"></pre>
</div>
<div id="tutorial-feedback-banner" class="feedback-banner hidden"></div>
</div>
</div>
<!-- View: Interview Topics -->
<div id="view-interview-topics" class="view hidden">
<button id="btn-back-from-interview-topics" class="btn-secondary">← All Levels</button>
<h2 style="margin-top:1rem;">Interview Prep</h2>
<p id="interview-topics-subtitle" class="subtitle"></p>
<ul id="interview-topics-list" class="problems-list"></ul>
</div>
<!-- View: Interview Topic (Learn + Practice) -->
<div id="view-interview-topic" class="view hidden">
<button id="btn-back-to-interview-topics" class="btn-secondary">← All Topics</button>
<div id="interview-topic-nav" class="interview-topic-nav"></div>
<p id="interview-progress" class="subtitle" style="margin-top:0.5rem;"></p>
<div class="card interview-learn-card">
<h3 id="interview-topic-title"></h3>
<div class="learn-block">
<span class="learn-label">What is it?</span>
<p id="interview-what" class="learn-text"></p>
</div>
<div class="learn-block">
<span class="learn-label">Key Operations</span>
<table id="interview-operations" class="ops-table"></table>
</div>
<div class="learn-block">
<span class="learn-label">Python Tools</span>
<p id="interview-python-tools" class="learn-text interview-tools-text"></p>
</div>
<div class="learn-block">
<span class="learn-label">Example</span>
<pre id="interview-example" class="code-example"></pre>
</div>
</div>
<div class="card editor-card">
<div id="interview-problem-tabs" class="interview-problem-tabs"></div>
<div class="interview-problem-header">
<h4 id="interview-problem-title"></h4>
<a id="interview-leetcode-link" href="#" target="_blank" rel="noopener" class="leetcode-link"></a>
</div>
<p id="interview-problem-description" class="editor-description"></p>
<pre id="interview-problem-example" class="problem-example"></pre>
<div id="interview-code-editor" class="code-editor-cm"></div>
<button id="btn-run-interview" class="btn-primary" disabled>Loading Python...</button>
<div id="interview-test-results" class="interview-test-results hidden"></div>
<div id="interview-feedback-banner" class="feedback-banner hidden"></div>
</div>
</div>
<!-- View: Interview2 Topics -->
<div id="view-interview2-topics" class="view hidden">
<button id="btn-back-from-interview2-topics" class="btn-secondary">← All Levels</button>
<h2 style="margin-top:1rem;">Interview Prep 2 — Non-LeetCode</h2>
<p id="interview2-topics-subtitle" class="subtitle"></p>
<ul id="interview2-topics-list" class="problems-list"></ul>
</div>
<!-- View: Interview2 Topic (Learn + Practice) -->
<div id="view-interview2-topic" class="view hidden">
<button id="btn-back-to-interview2-topics" class="btn-secondary">← All Topics</button>
<div id="interview2-topic-nav" class="interview-topic-nav"></div>
<p id="interview2-progress" class="subtitle" style="margin-top:0.5rem;"></p>
<div class="card interview-learn-card">
<h3 id="interview2-topic-title"></h3>
<div class="learn-block">
<span class="learn-label">What is it?</span>
<p id="interview2-what" class="learn-text"></p>
</div>
<div class="learn-block">
<span class="learn-label">When to use it?</span>
<p id="interview2-when" class="learn-text"></p>
</div>
<div class="learn-block">
<span class="learn-label">Key Insight</span>
<p id="interview2-key-insight" class="learn-text"></p>
</div>
<div class="learn-block">
<span class="learn-label">Example</span>
<pre id="interview2-example" class="code-example"></pre>
</div>
</div>
<div class="card editor-card">
<div id="interview2-problem-tabs" class="interview-problem-tabs"></div>
<div class="interview-problem-header">
<h4 id="interview2-problem-title"></h4>
</div>
<p id="interview2-problem-description" class="editor-description"></p>
<pre id="interview2-problem-example" class="problem-example"></pre>
<div id="interview2-code-editor" class="code-editor-cm"></div>
<button id="btn-run-interview2" class="btn-primary" disabled>Loading Python...</button>
<div id="interview2-test-results" class="interview-test-results hidden"></div>
<div id="interview2-feedback-banner" class="feedback-banner hidden"></div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/mode/python/python.min.js"></script>
<script src="data.js"></script>
<script src="app.js"></script>
</body>
</html>