Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CSE16231
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
Releases
Container registry
Model registry
Operate
Environments
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
Prannesh SathyaMoorthy
CSE16231
Commits
f754233e
Commit
f754233e
authored
6 years ago
by
Prannesh SathyaMoorthy
Browse files
Options
Downloads
Patches
Plain Diff
Project done
parents
No related branches found
No related tags found
No related merge requests found
Pipeline
#158
canceled
6 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cse16231_ex03_01.py
+10
-0
10 additions, 0 deletions
cse16231_ex03_01.py
with
10 additions
and
0 deletions
cse16231_ex03_01.py
0 → 100644
+
10
−
0
View file @
f754233e
path
=
'
sw.txt
'
sample_txt
=
open
(
path
,
'
r
'
)
dic
=
{}
i
=
sample_txt
.
readlines
()
for
j
in
i
:
if
j
not
in
dic
:
dic
[
j
]
=
1
else
:
dic
[
j
]
+=
1
print
(
dic
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment