Sometimes, we want to run multi-line statements in the one-line command-line with Python. In this…
Coding
Sometimes, we want to fix SyntaxError: Non-ASCII character ‘xa3’ in file when function returns ‘£’…
Sometimes, we want to specify and save a figure with exact size in pixels with…
Sometimes, we want to take the first N items from a generator or list with…
Sometimes, we want to remove axis, legends and white spaces in Python Matplotlib plots. In…
Sometimes, we want to convert dictionary to JSON with Python. In this article, we’ll look…
Sometimes, we want to remove all special characters, punctuation and spaces from string with Python.…
Sometimes, we want to find length of digits in an integer with Python. In this…
Sometimes, we want to do list subtraction operation with Python. In this article, we’ll look…
Sometimes, we want to pass a list as a command-line argument with Python argparse. In…