Nayeon's Python Lab is where I experiment with Python.
π§ͺ TILs
zen_of_python.py
: If youimport this
, you can see the Zen of Python.insertion_sort.py
&selection_sort.py
-
looping_with_iterators.py
: Iterables can be passed to theiter()
function to get an iterator for them. Iterators can be passed to thenext()
function which gives their next item or raisesStopIteration
. -
counter.py
: An emptyCounter()
object is smaller than any other non-emptyCounter()
objects. Also, aCounter()
object with one key whose value is0
is equal to an emptyCounter()
object.