FUNCTIONS IN PYTHON

FUNCTIONS IN PYTHON FUNCTION: ▪️ A function is a block of code that performs a specific task. ▪️ Functions are defined by using the def keyword which follows by function name and parentheses which may have parameters. ▪️ Any function can accept zero or more… Read More

Exceptional Handling in python

Exceptional Handling in python Exception handling allows developers to manage errors and unexpected situations. Exception handling is the process of managing errors and unexpected events that occur during the execution of a program. When a Python program encounters an error, it raises an exception, which… Read More

Built in Object Types in Python

Built in Object Types in Python ▪️ All programming languages support a number of built-in variable types. These are the building blocks used for all the other variable types available within the language. ▪️ By combining or extending the basic variable, we can create some… Read More

String: Python

String: ⦁ It is one of the built-in data structures in python. ⦁ String is a group of one or more characters which are enclosed in between single, double, triple quotes. ⦁ Strings can contain symbols, letters, numbers and special characters. ⦁ Strings are immutable… Read More

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