Dictionary – Python

Dictionary ▪️ Dictionary is the inbuilt data type in python which organizes data in a collection of key-value pairs, where each key is unique and maps to a specific value. ▪️ Each element in the dictionary is a key–value pair and one individual key value… Read More

LOOPING IN PYTHON

LOOPING IN PYTHON Loop: A loop is a control flow structure that allows a set of statements that will be executed repeatedly until a certain condition is met. Loops are used to automate repetitive tasks, to iterate over a data structure. Python language support two… Read More

Tuples – PYTHON

Tuples Tuple: ➔ A tuple is an inbuilt data type which is an ordered, immutable and lightweight collection of elements in python. ➔ The term immutable means once the tuple is created you can’t modify the size or the elements which are present in the… Read More

Variables in Python

Variables in Python Identifiers: An identifier is a name given to the entities in a program such as variables, classes, functions and all the other objects in python. ▪️ Identifiers are case sensitive. ▪️ There is no length restriction for the identifiers, but you have… Read More

Lists in Python

Lists in Python ▪️ A list in Python is a group of related values (elements) that are arranged in a specific order and can be changed. ▪️ It can store different data types, including integers, floats, strings, and lists themselves. ▪️ Lists are enclosed in… Read More

PYTHON Introduction

PYTHON Introduction Program: A program is a set of instructions that can be executed by the computer to perform a specific task. Purpose of using programs: 👉 To get accurate results. 👉 To get output very fast. We can write the programs using both the… Read More

OPERATORS IN PYTHON

OPERATORS IN PYTHON Operator: It is defined as a symbol which is responsible for a particular operation between two operands. Python supports different types of operators: 1.Arithmetic Operators               2.Assignment Operators            3.Logical Operators                    4.Comparison Operators            5.Bitwise Operators                    6.Identity Operators                    7.Membership Operators              Arithmetic Operators: They are… Read More

FUNCTIONS IN PYTHON

FUNCTIONS IN PYTHON FUNCTION :   A function is a block of code that executes only when it is called. Data can be passed to functions as parameters. A function can return the result or output the result. In python a function can be created or… Read More

LOOPS IN PYTHON

LOOPS IN PYTHON Python language provides three types of loops, They are : while loop for loop nested loop Loop : It is a sequence of statements that will be repeated continuously until a certain condition is met. While Loop : It is used to… Read More

Control Flow In Python

CONTROL FLOW Decision making statements in programming languages decide the direction of the flow of program execution based on the given conditions. Python supports if, Elif used to decide the flow of execution. If statement: It is the basic decision-making statement, in this the code… Read More