Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dolsysmith committed Dec 13, 2023
1 parent e8b1a31 commit 41c2249
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _sources/notebooks/lessons/2_1_describing_the_team.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions notebooks/lessons/2_1_describing_the_team.html
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ <h3>II.2 Working with nested data<a class="headerlink" href="#ii-2-working-with-
<p class="admonition-title">Try it out!</p>
<p>Try updating a few of the keys in a few of the dictionaries in your team list. The diagram below might help you conceptualize the syntax you need.</p>
</div>
<a class="reference internal image-reference" href="https://gwu-libraries.github.io/python-camp/img/nested-data.png"><img alt="Image showing a box labeled my_team containing three smaller boxes, each containing key-value pairs and numbered sequentially from 0. Below that, a line of code, and boxes underneath pointing to each element -- a variable (a list), an index (2nd position in the list), a key (in the 2nd dictionary), and a new value (added to the 2nd dictionary)." class="align-center" src="https://gwu-libraries.github.io/python-camp/img/nested-data.png" style="width: 500px;" /></a>
</section>
<section id="ii-3-loops-lists-and-dictionaries">
<h3>II.3 Loops, lists, and dictionaries<a class="headerlink" href="#ii-3-loops-lists-and-dictionaries" title="Permalink to this heading">#</a></h3>
Expand Down
4 changes: 2 additions & 2 deletions parsons-problems/html/homework-1-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-1" draggable="true">
print(price_num)
price_num = price[1:]
</div>
</div>

Expand All @@ -53,7 +53,7 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-3" draggable="true">
price_num = price[1:]
print(price_num)
</div>
</div>

Expand Down
6 changes: 3 additions & 3 deletions parsons-problems/html/homework-1-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-1" draggable="true">
print(depts)
for course in courses:
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-2" draggable="true">
depts = []
print(depts)
</div>
</div>

Expand All @@ -67,7 +67,7 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-5" draggable="true">
for course in courses:
depts = []
</div>
</div>

Expand Down
20 changes: 10 additions & 10 deletions parsons-problems/html/homework-2-GR.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,61 +41,61 @@ <h2>Compose your code here</h2>

<div class="parsons-ps">
<div class="parsons-block" id="pb-1" draggable="true">
courses_db = []
courses_db.append(course_dict)
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-2" draggable="true">
course_dict['section'] = course_info[2]
course_dict['dept_code'] = course_info[0]
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-3" draggable="true">
courses_db.append(course_dict)
course_info = course.split()
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-4" draggable="true">
course_dict['instructor'] = course_info[3]
print(courses_db)
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-5" draggable="true">
for course in courses:
courses_db = []
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-6" draggable="true">
course_info = course.split()
course_dict['course_num'] = course_info[1]
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-7" draggable="true">
print(courses_db)
for course in courses:
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-8" draggable="true">
course_dict = {}
course_dict['instructor'] = course_info[3]
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-9" draggable="true">
course_dict['dept_code'] = course_info[0]
course_dict = {}
</div>
</div>

<div class="parsons-ps">
<div class="parsons-block" id="pb-10" draggable="true">
course_dict['course_num'] = course_info[1]
course_dict['section'] = course_info[2]
</div>
</div>

Expand Down

0 comments on commit 41c2249

Please sign in to comment.