Tag: Python

Object Oriented Programming and Class

Near the year’s end, holidays and gatherings with family and friends have put me to postpone updating for a while. As 2022 officially ended, it’s worth spending some time to reflect on the things we have gone through and learnt. Personally, I started a new role in forex, picked up workout habits, chartered as a […]

Lambda Function

What is lambda function? Lambda function is an anonymous function or function without explicit definition, which can take in multiple parameters with single line expression. Since lambda is an anonymous function not designed to be stored, assigning a lambda function to a variable is not encouraged. Lambda functions are commonly used along with filter(), map(), […]

Finding the Max

If we are presented with a list of different numbers, how will we identify the largest one? This question sounds straightforward. Using simple arithmetic, we can easily compare different values inside the list and get the largest one. But what if the numbers get more extensive and the list length gets too long to handle? […]

The Idea of Control Flow

“Control” is the rule or order given to someone or something’s behaviour. “Control flow” in the context of Computer Science is the order of statements executed when a program is running. Code without control flow is just simply “code” literally, and it’s hard to put into practice. It is the building block of an algorithm. […]