Skip to content

Commit 6f78f1d

Browse files
committed
add .py to documentation
1 parent f6a2dca commit 6f78f1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

algs4/bag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
"""
3-
Execution: python bag < input.txt
3+
Execution: python bag.py < input.txt
44
55
% more tobe.txt
66
to be or not to - be - - that - - - is

algs4/degrees_of_separation.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//algs4.cs.princeton.edu / 41graph / movies.txt
99
1010
11-
% python degrees_of_separation routes.txt " " "JFK"
11+
% python degrees_of_separation.py routes.txt " " "JFK"
1212
LAS
1313
JFK
1414
ORD
@@ -21,7 +21,7 @@
2121
EWR
2222
Not in database.
2323
24-
% python degrees_of_separation movies.txt "/" "Bacon, Kevin"
24+
% python degrees_of_separation.py movies.txt "/" "Bacon, Kevin"
2525
Kidman, Nicole
2626
Bacon, Kevin
2727
Woodsman, The(2004)
@@ -35,7 +35,7 @@
3535
Dead Men Don't Wear Plaid(1982)
3636
Grant, Cary
3737
38-
% python degrees_of_separation movies.txt "/" "Animal House (1978)"
38+
% python degrees_of_separation.py movies.txt "/" "Animal House (1978)"
3939
Titanic(1997)
4040
Animal House(1978)
4141
Allen, Karen(I)

0 commit comments

Comments
 (0)