Method__iter__ >>> tuple(Index2DArrayIterator([[5], [-523], [-1], [34], [0]])) (5, -523, -1, 34, 0) >>> tuple(Index2DArrayIterator([[5, -523
data_structures/arrays/index_2d_array_in_1d.py:31
Method__iter__ Returns sorted list containing all the values in the heap. >>> sh = SkewHeap([3, 1, 3, 7]) >>> list(sh) [1, 3, 3, 7]
data_structures/heap/skew_heap.py:141
Method__iter__ >>> list(BinaryTree.build_a_tree()) [1, 2, 7, 11, 15, 29, 35, 40]
data_structures/binary_tree/is_sum_tree.py:75
Method__iter__ >>> list(Node(0)) [0] >>> list(Node(0, Node(-1), Node(1), None)) [-1, 0, 1]
data_structures/binary_tree/binary_search_tree.py:106
Method__mul__ Polynomial multiplication >>> p = Polynomial(2, [1, 2, 3]) >>> q = Polynomial(2, [1, 2, 3]) >>> p * q 9x^4 +
maths/polynomials/single_indeterminate_operations.py:73
Method__ne__ Checks if two polynomials are not equal. >>> p = Polynomial(2, [1, 2, 3]) >>> q = Polynomial(2, [1, 2, 3]) >>> p != q
maths/polynomials/single_indeterminate_operations.py:180