Posts

Showing posts from January, 2025

Featured Post

Learn Python by Coding a Simple To-Do List in Python from Scratch

Image
Introduction This simple project in Python will not only teach you to build a simple ToDo List, but also assist you to learn basic Python concepts along the way! The basic concepts that you will be learning are about using the indefinite loop, that is, while True, how to stop the loop, if-elif-else loops, and also about creating a functional to do list in which the user is able to not only add items, but also, view items, update or edit them, remove items and also delete the entire list itself.  Please note this is Part 4 of my Python series. If you missed the algorithms and planning stages, check out Parts 1, 2, and 3 on my Substack! What We Want Our To do List to do Defining the Problem : Creating a storage space for storing the to do list grocery items that I want to shop. I want to make the list with a menu that shows a menu of choice with features such as Add, View, Edit, Remove, Delete and Exit options. So, I need a way to add items, view them, edit them, remove any of the it...

A Deep Dive Into Mastering 'def' in Python

Image
  A Deep Dive Into Mastering 'def' in Python This Post has migrated to my Substack Newsletter,Please read the Updated Post here . INTRODUCTION For all those code newbies who find it hard to digest the usage and where withals of  the term def that appears a lot of time while coding in Python, here is a great news! I am going to explain not only what is the def that is used so frequently in all of the Python projects, but also, it's usage, why it is used and how it is used in detailed steps. WHAT IS def The def keyword is used for describing or defining a Python function in which we need to implement certain specified tasks. We require various tasks to be done inside a function, such as calculating the sume of numbers, carrying out subtraction of numbers, finding the average of numbers, finding Grades based on score , etc. I will be outlining below, the various tasks that could be performed inside the def function and I will be also guiding you on each of them step-by-step ci...