One of the frustrating things for Python developers is that there is no block comment functionality where you can comment out multiple lines in one go. Today on the Python Lab, we take a look at how we can use a small hack to achieve this functionality....
python-lab
3 Articles
3
Today on Python Lab, we have a quick and easy way to print out all the items of an iterable (list, set, dict etc) one below the other. I find this a great way to clearly read items in a list when debugging....
Today, we ask: How do you flatten a list in Python?...