Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-24fa
lecture-code
Commits
364197df
Commit
364197df
authored
6 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
autocommit
parent
e53fe70a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
08/overview.md
+20
-0
08/overview.md
with
20 additions
and
0 deletions
+20
-0
08/overview.md
0 → 100644
View file @
364197df
# Lecture 08 Overview
# Keyword Arguments
-
You can provide "optional" arguments in
`python`
# New List Functionality
-
`lst[-1]`
-
`list.pop()`
-
`list.pop(0)`
# More Dictionaries
-
`d.keys()`
-
`d.values()`
-
Cumulative Algorithm Patttern for dictionaries
# Case Study: A Joke Teller!
-
`get_n_jokes(n: int, type: JokeType = "any") -> list[Joke]`
-
`get_average_joke_rating(ratings: dict[int, int])`
-
`find_best_joke(jokes: dict[int, Joke], joke_ratings: dict[int, int])`
-
`tell_jokes(n: int = 3)`
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help