Skip to content

Commit 51e3588

Browse files
committed
Fixes from prior PRs
1 parent b85f0b4 commit 51e3588

3 files changed

Lines changed: 395 additions & 259 deletions

File tree

pretext/Lists/Exercises.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ myTests().main()
168168
<program xml:id="lst_q5_answer" language="python">
169169
<input>
170170
def max(lst):
171-
max = 0
171+
max = lst[0]
172172
for e in lst:
173173
if e &gt; max:
174174
max = e

pretext/Lists/ListMethods.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ print(mylist)
2727
mylist.sort()
2828
print(mylist)
2929

30-
mylist.remove(5) # Removes the first 12 in the list
30+
mylist.remove(5) # Removes the second 12 in the list
3131
print(mylist)
3232

3333
lastitem = mylist.pop() # Removes and returns the last item of the list

0 commit comments

Comments
 (0)