-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCS50P_Problem_Set_3_Interactive_Guide.html
More file actions
80 lines (74 loc) · 3.48 KB
/
CS50P_Problem_Set_3_Interactive_Guide.html
File metadata and controls
80 lines (74 loc) · 3.48 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CS50P Problem Set 3 Student Support</title>
<meta name="description" content="Interactive support page for CS50P Problem Set 3." />
<link rel="icon" href="data:," />
<link rel="stylesheet" href="assets/cs50p_pset_shared.css" />
</head>
<body>
<main class="wrap">
<div class="topbar">
<a class="home-link" href="CS50P_Problem_Sets_Home.html">← Back to CS50P Problem Sets Home</a>
<span class="chip">CS50P</span>
<span class="chip" id="psetChip">Problem Set 3</span>
</div>
<h1 id="pageTitle">Problem Set 3 Student Support</h1>
<p class="lead" id="pageLead">Use official specs first, then practice patterns in the runner.</p>
<div class="grid">
<section class="card">
<h2>How to Use This Page</h2>
<ol>
<li>Choose a problem tab.</li>
<li>Open the official CS50 problem.</li>
<li>Load starter code or worked example.</li>
<li>Run and test code in the editor.</li>
</ol>
</section>
<section class="card">
<h2>Official Links</h2>
<ul>
<li><a id="officialPsetLink" href="https://cs50.harvard.edu/python/psets/3/" target="_blank" rel="noopener noreferrer">Problem Set 3 Official Page</a></li>
<li><a href="https://cs50.harvard.edu/python/notes/3/" target="_blank" rel="noopener noreferrer">Week 3 Notes</a></li>
<li><a href="https://cs50.harvard.edu/python/shorts/" target="_blank" rel="noopener noreferrer">CS50P Shorts</a></li>
</ul>
</section>
<section class="card">
<h2>Problems</h2>
<div class="problem-tabs" id="problemTabs" role="tablist" aria-label="Problem tabs"></div>
<div id="problemPanels"></div>
</section>
<section class="card runner" id="runner">
<div class="row" style="justify-content:space-between">
<h2 style="margin:0">Try Code Here</h2>
<span class="status" id="pyStatus" role="status" aria-live="polite">Loading Python…</span>
</div>
<div class="callout" id="loadedInfo" role="status" aria-live="polite">Loaded code info: none yet.</div>
<p class="subtle">Press <strong>Ctrl+Enter</strong> to run. If your program uses <code>input()</code>, a pop-up appears.</p>
<textarea id="pyCode" spellcheck="false" aria-label="Python code editor"></textarea>
<div class="row" style="margin-top:10px">
<button id="runPy" type="button">Run Code</button>
<button id="clearOut" class="ghost" type="button">Clear Output</button>
</div>
<pre id="pyOut" class="output" aria-label="Python output" tabindex="0"></pre>
</section>
</div>
</main>
<script>
window.CS50P_PAGE_CONFIG = {
psetLabel: 'Problem Set 3',
officialPsetUrl: 'https://cs50.harvard.edu/python/psets/3/',
lead: 'Problem Set 3 continues practice with parsing, loops, and user input handling.',
problems: [
{ title: 'Fuel Gauge', url: 'https://cs50.harvard.edu/python/psets/3/fuel/' },
{ title: 'Felipe’s Taqueria', url: 'https://cs50.harvard.edu/python/psets/3/taqueria/' },
{ title: 'Grocery List', url: 'https://cs50.harvard.edu/python/psets/3/grocery/' },
{ title: 'Outdated', url: 'https://cs50.harvard.edu/python/psets/3/outdated/' }
]
};
</script>
<script src="assets/cs50p_pset_shared.js"></script>
</body>
</html>