Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Ethan Mertz
/
CS-123-Final
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
be5fa434
authored
Jun 03, 2018
by
Ethan Mertz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added normal thing
parent
a1e212d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
find_top_python_variables.py
find_top_python_variables.py
0 → 100644
View file @
be5fa434
d
=
{}
with
open
(
"python.txt"
)
as
p
:
for
line
in
p
:
var
=
re
.
findall
(
"[
\
s]*([
\
w, ]+)[
\
s]*="
)
d
[
var
]
=
d
.
get
(
var
,
0
)
+
1
l
=
[]
for
item
in
d
:
l
.
append
((
d
[
item
],
item
))
nl
=
sorted
(
l
)
for
i
in
range
(
100
):
print
(
nl
[
i
])
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