Sometimes, we want to keep dictionary keys/values in same order as declared with Python. In…
Month: April 2022
Sometimes, we want to flatten a shallow list in Python. In this article, we’ll look…
Sometimes, we want to parse XML and count instances of a particular node attribute with…
Sometimes, we want to convert two lists into a dictionary with Python. In this article,…
Sometimes, we want to check if a string is empty with Python. In this article,…
Sometimes, we want to reverse a string in Python. In this article, we’ll look at…
Sometimes, we want to convert an integer to string in Python. In this article, we’ll…
Sometimes, we want to import a module given the full path in Python. In this…
Sometimes, we want to profile a Python script. In this article, we’ll look at how…
Sometimes, we want to check which version of Python is running in a script. In…