Python Python Three ways to flatten a list There seems not to be a built-in function to flatten a list in Python. So I implemented it. List containing lists that h... 2022.10.07 Python
Python Python How to pass a list to parametrize in Pytest I searched for a way to pass a list as a parameter but I didn't find the answer. Because it is too easy to do...? Passin... 2022.10.05 Python
Python Python How to call a function for all elements of a list by using map If a function needs to be processed for all elements of a list, map function can be used. Basic usage of map function ma... 2022.10.03 Python
Other techs Makefile How to use variables defined in a config file It took me a while to clarify how to import variables from a config file. We have makefile.env and define environment va... 2022.09.30 Other techs
Python Python How to check if list has only one data type typing helps the Python development with the data type. But sometimes it's hard to work with type. How can we implement ... 2022.09.28 Python
Python Python square brackets with a colon for list The main purpose of this article is to understand how the following code works. This is one of the ways to add element(s... 2022.09.26 Python
Python Python Class constructor, destructor, accessibility, and inheritance Define a function in a class Functions in a class can be defined in the following way. Once it's defined, it needs to be... 2022.09.23 Python
Python Python How to setup for Remote debugging with VSCode Here is the official page for the remote debugging setting but it was not clear to me how to set it up until I really tr... 2022.09.21 Python
Python Python How to start unit tests with pytest This post is for those who want to start unit testing in Python with pytest. How should file name and function name look like? How can we compare results? What if the function throws an error? This post guides you to unit testing world! 2022.09.19 Python
Python Python Use triple quotes for Docstrings I saw triple quotes in a class definition like the following. class MyClass(): """ This is my class. It does something f... 2022.09.16 Python