Skip to content

Commit 014786e

Browse files
Fix: typo in multiple files.
1 parent 3ecb193 commit 014786e

13 files changed

+13
-13
lines changed

dynamic_programming/fibonacci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get(self, sequence_no=None):
3030
import sys
3131

3232
print("\n********* Fibonacci Series Using Dynamic Programming ************\n")
33-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
33+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
3434
# otherwise 2.x's input builtin function is too "smart"
3535
if sys.version_info.major < 3:
3636
input_function = raw_input

searches/binary_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __assert_sorted(collection):
137137

138138
if __name__ == '__main__':
139139
import sys
140-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
140+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
141141
# otherwise 2.x's input builtin function is too "smart"
142142
if sys.version_info.major < 3:
143143
input_function = raw_input

searches/linear_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def linear_search(sequence, target):
4141
if __name__ == '__main__':
4242
import sys
4343

44-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
44+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
4545
# otherwise 2.x's input builtin function is too "smart"
4646
if sys.version_info.major < 3:
4747
input_function = raw_input

sorts/bogosort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def isSorted(collection):
4141
if __name__ == '__main__':
4242
import sys
4343

44-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
44+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
4545
# otherwise 2.x's input builtin function is too "smart"
4646
if sys.version_info.major < 3:
4747
input_function = raw_input

sorts/bubble_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def bubble_sort(collection):
4141

4242
if __name__ == '__main__':
4343
import sys
44-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
44+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
4545
# otherwise 2.x's input builtin function is too "smart"
4646
if sys.version_info.major < 3:
4747
input_function = raw_input

sorts/cocktail_shaker_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def cocktail_shaker_sort(unsorted):
2323
if __name__ == '__main__':
2424
import sys
2525

26-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
26+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
2727
# otherwise 2.x's input builtin function is too "smart"
2828
if sys.version_info.major < 3:
2929
input_function = raw_input

sorts/gnome_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def gnome_sort(unsorted):
2121
if __name__ == '__main__':
2222
import sys
2323

24-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
24+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
2525
# otherwise 2.x's input builtin function is too "smart"
2626
if sys.version_info.major < 3:
2727
input_function = raw_input

sorts/insertion_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def insertion_sort(collection):
4141
if __name__ == '__main__':
4242
import sys
4343

44-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
44+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
4545
# otherwise 2.x's input builtin function is too "smart"
4646
if sys.version_info.major < 3:
4747
input_function = raw_input

sorts/merge_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def merge_sort(collection):
6464
if __name__ == '__main__':
6565
import sys
6666

67-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
67+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
6868
# otherwise 2.x's input builtin function is too "smart"
6969
if sys.version_info.major < 3:
7070
input_function = raw_input

sorts/quick_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def quick_sort(ARRAY):
4242
if __name__ == '__main__':
4343
import sys
4444

45-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
45+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
4646
# otherwise 2.x's input builtin function is too "smart"
4747
if sys.version_info.major < 3:
4848
input_function = raw_input

sorts/selection_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def selection_sort(collection):
4444

4545
if __name__ == '__main__':
4646
import sys
47-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
47+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
4848
# otherwise 2.x's input builtin function is too "smart"
4949
if sys.version_info.major < 3:
5050
input_function = raw_input

sorts/shell_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def shell_sort(collection):
4545

4646
if __name__ == '__main__':
4747
import sys
48-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
48+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
4949
# otherwise 2.x's input builtin function is too "smart"
5050
if sys.version_info.major < 3:
5151
input_function = raw_input

traverals/binary_tree_traversals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def level_order(node):
8484
import sys
8585

8686
print("\n********* Binary Tree Traversals ************\n")
87-
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
87+
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
8888
# otherwise 2.x's input builtin function is too "smart"
8989
if sys.version_info.major < 3:
9090
input_function = raw_input

0 commit comments

Comments
 (0)