Posts

Showing posts from February, 2023

Featured Post

How To Use Python Arithmetic Operators

Image
How To Use Python Arithmetic Operators Introduction Arithmetic Operators are used in Python to carry out mathematical operations on numerical values. It is very important to understand this operator well in order to complete Python projects that require you to do carry out mathematical calculations. In this guide, you will come across all the different types of arithmetic operators that will be explained in an easy-to-understanad manner. Types of Python Arithmetic Operators There are six types of arithmetic operators in Python and in this guide, I will be explaining every one of them with detailed explanation as well as with simple example exercises, for your easy understanding! So, keep reading this post until the very end , so that you do not miss out any valid points. The 6 types of arithmetic operators are :  1. Addition Operator  2. Subtraction Operator   3. Multiplication Operator  4. Division Operator 5. Modulus Operator  6. Exponential Operator Addi...

A Simple Guide to Python Lists

A Simple Guide to Python Lists What are Lists  Lists in Python are built-in data structures to store items in a specified order. Lists store multiple items in a single variable. Sometimes, they could also be not carrying any item, that is, they could be empty as well.  Let us delve deeper into the concept of lists, how they are created and what methods we can perform with lists. Define Lists  Lists are built-in data structures  in Python, that store multiple items with a specified order, in a single variable. How to Create a List To create a list, for example , below, we use a variable called names and store all strings, namely, "Jay", "Ann" and "Alan" using the square brackets and then we run the print command. We also consider another variable numbers storing numbers 1,2,3  as shown below. names = ["Jay","Ann","Alan"] print(names) numbers = [1,2,3] print(numbers)   What are List Items The list items could be o...