Getting started: Hello world program in flask

According to ancient programming tradition, whenever you feel like you are ready to start building out new projects in programming, you start with a hello world application. That’s why in this tutorial we are going to be writing our very first hello world program in flask. The purpose of this program is to make you a little more familiar with flask and how it works. Let’s get started.. What is flask Flask is a backend web framework written in python....

September 18, 2022 · 5 min · Jima Victor

How to make a simple calculator in python

Building out a calculator app in python is one of those beginner projects that is really going to help you improve your skills. As a beginner, building out projects is the best way to learn. It doesn’t matter how much you have read or studied in programming if you don’t build out projects. Building projects helps you reinforce and better retain and understand whatever you have read. So in this tutorial, we are going to be building out a simple calculator app in python - nothing complex....

August 23, 2022 · 5 min · Jima Victor

Anonymous Function in Python

Objective: In this brief post, you’re going to learn what anonymous functions are, and when to use them Anonymous functions in python? If you are looking to know what an anonymous function in python is? Then it’s more likely that you have experience working with anonymous functions in javascript. While they are called anonymous functions in javascript, they are referred to as lambda functions in python. So what is a lambda function?...

July 30, 2022 · 2 min · Jima Victor

How to addEventListener to a list of html Elements in JavaScript

Have you ever tried to add an event listener to a group of html elements all at once? if you had, you may had probably done something like this: const buttons = document.getElementsByTagName("button"); buttons.forEach((item) => { item.addEventListener("click", function () { console.log("click"); }); }); The problem with the above code is that, when you finally check your browser console, you are going to encounter an error. Why? This is because we are treating our list of buttons as an array while it is not....

July 11, 2022 · 2 min · Jima Victor

How to add dark mode using javascript

We’re going to be adding dark mode to a simple website using javascript and the localStorage property of the window object. The localStorage property will be used in order to maintain dark mode even after the page is refreshed. Note: Before we start, I’d like to say that the best way to gain a lot from this tutorial is by following along, especially if you are a beginner.. (though it’s not necessary, it’s better if you could)....

June 28, 2022 · 4 min · Jima Victor