Posts

Showing posts from January, 2023

Featured Post

Variables in Python: Python For Beginners

Image
Variables in Python: Python For Beginners Introduction This tutorial is for Python beginners who are confused with the usage of python variables. I will be first starting with the general definition of the term variable and then I will go on to explain it's usage, how it is created and the advantages of using python variables. What is a Variable A Variable is a container or placeholder for storing values while we carry out several tasks inside a Python function. A variable can store integers, float, string,list,tuple and even boolean. How Variables are Created & Declared In Python, we do not need any specific method or syntaxes to create variables. There is no need of explicitly declaring a variable. We just create a variable by assigning it a value with the 'equal to' sign and then a variable is created immediately! For Example: name = "Tracy Wills" age = 25 year = 2025 In the above examples, we created a variable by assigning it a value of "Tracy Wills...

Create a Dropdown Menu in HTML & CSS

Image
Create a Dropdown Menu in HTML & CSS This tutorial will teach you how to build a simple dropdown menu in HTML and CSS for your website. Building a simple navigation menu by using HTML and CSS will be an awesome practice for you to learn the basics of HTML and CSS and I will guide you on the basics of the code syntaxes used in this tutorial while building this menu. Why & When to use a dropdown Menu  In this navigation menu, we will be creating the menu for a fashion website, where we will have links to go to the Home page, and also links to take you to Bag, Shoe and Makeup pages. The idea of a menu in any website is for the user to navigate to different pages of the website or blog by clicking on the different tab links. So, we have the tabs for Home, Bag, Shoe and Makeup.  When there are several categories of products and each product having more than one sub-category, then, we need the feel to create a drop-down menu, whereby we can make the navigation much more simp...

A Simple Guide to Promises in JavaScript ES6

Image
A Simple Guide to Promises in JavaScript ES6 In this JavaScript tutorial, based on the freeCodeCamp JavaScript Algorithms and database structures, I will be explaining and walking you through the concept and usage of Promises in JavaScript, with very simple examples to make you understand the concept easily.  What is a Promise in JavaScript? A Promise in JavaScript is an object that displays the final success or failure of an Asynchronous operation.    A Promise in JavaScript is similar to a promise given in real life, meaning, it is Asynchronous, that is, it is unidirectional. When you give a promise to another person, you could either fulfil that promise or reject the promise, but, you can not both fulfil as well as reject a promise given. Similarly, in JavaScript, a Promise is Asynchronous in nature. Imagine a situation whereby you decided to apply for loan to start a new business. You make a loan application letter the next day and approach the Bank Manager. When ...