Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS101 - Cognitive Science and Artificial Intelligence
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Tasker
CS101 - Cognitive Science and Artificial Intelligence
Compare revisions
main to fb552abd0d2ee111d82ca208cd71614088da76c6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
gvb23154/cs101-csai
Select target project
No results found
fb552abd0d2ee111d82ca208cd71614088da76c6
Select Git revision
Swap
Target
xgb21195/cs101-csai
Select target project
mfb23137/cs101-csai
gvb23154/cs101-csai
kkb23140/cs-101-cognitive-science-and-artificial-intelligence-sem-2-first-half
kxb23169/cs101-csai
xgb21195/cs101-csai
5 results
main
Select Git revision
Branches
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Update letters.py
· fb552abd
Peter Tasker
authored
1 year ago
fb552abd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lec2/letters.py
+1
-1
1 addition, 1 deletion
lec2/letters.py
with
1 addition
and
1 deletion
lec2/letters.py
View file @
fb552abd
...
...
@@ -30,7 +30,7 @@ def file2pairs(filename):
letter_dict
=
{
c
:
{
a
:
0
for
a
in
letters
}
for
c
in
letters
}
previous
=
None
with
open
(
filename
,
enc
d
oing
=
"
utf-8
"
)
as
fp
:
with
open
(
filename
,
enco
d
ing
=
"
utf-8
"
)
as
fp
:
for
c
in
fp
.
read
():
if
c
not
in
letter_dict
:
continue
...
...
This diff is collapsed.
Click to expand it.