Python: Logging Errors to a Text File

In this article, let us see how we can catch exceptions and log them onto a text file. Logging is a tool used in software engineering to track any and all the events that occur when your program runs. It’s like leaving a trail of breadcrumbs. When something goes wrong, we know where to start … Read more

Python if with 3 conditions: Explained with Examples!

In this article, let’s look at constructing the ‘if statement’ with 3 conditions. If you are relatively new to programming, I suggest reading our other articles on the if statement and if statement with 2 conditional statements before continuing this one. Alright, let’s begin! How to write an if statement with 3 conditions? Here’s the … Read more

If-Else in Python: Explained with Examples!

In this article let’s see how to write if-else statements in Python. All programming languages have a way of writing if-else statements, which is just a way of making a decision on what to do next! If it rains, open the umbrella! embeddedinventor.com Here the decision of “whether or not to open the umbrella” is … Read more