String and lists are the data structures commonly used in various programming languages for multiple purposes. We often see exchangeable conversions between list and string, for example, storing data into…
Category: Programming
Programming is the process of creating a set of instructions that tell a computer how to perform a task. Programming can be done using a variety of computer “languages” such as SQL, Java, Python, and C++.
How to ignore top rows in CSV or TSV files
Working with CSV or TSV files, we often ought to ignore the header row (aka. the column headers) before reading the rest of the file. To strip out the first…
How to automatically delete a Docker container after running it
Normally, a Docker container persists after it has exited. This allows you to run the container again, inspect its filesystem, and so on. However, sometimes you want to run a…
How To Check If Key Exists In Dictionary In Python
If you try to retrieve a non-existed key of a dictionary, you are gonna stuck an exception obviously. To be get safer, you should do check its existence before doing…
Scraping and downloading multiple files from web with Python
In recent posts, we have discussed some methods to scrap and download resources from the web. If you just want to download a few files, it doesn’t matter to iterate…