Posts From Lalit Kumar

Python Programming 0 Comments

Introdution to Python functions

A Python function is a self-contained module of code that performs a specific task. It takes inputs, processes them, and then returns a result. For example, a function add_two() takes

Python Programming 0 Comments

Using Python pass keyword

The Python pass keyword which is a statement in itself basically does nothing. It can be used as a placeholder for future code. As empty code is not allowed in

Programming 0 Comments

Using Python break and continue keywords

The break and continue are keywords used in Python to alter the normal flow of loops. A loop iterate over a line or block of code repeatedly until the given

Programming 0 Comments

Python Loops

A loop statement in programming is used to execute a line or block of code repeatedly. For example, suppose you want to print the “Hello World!” string 100 times you

Programming 0 Comments

Python if else and nested if else statements

In programming conditional statements provides a way in which the computer takes a decision based on whether a condition is true or false. The if and else statements are common

Programming 0 Comments

Python Indentation

An indentation or indent is an empty space at the beginning of a line that signals the start of a new logical block in a Python program. Many programming languages

Programming 0 Comments

Taking Input From Users In Python

Computer programs often need to interact with users to get some kind of data from them. Later this data is processed and output is displayed on the console. For example,

Python Programming 0 Comments

Operators in Python

An operator is a symbol that tells the Python interpreter to perform specific arithmetic or logical operations on variables and values. For example – # Here + and = are

Programming 0 Comments

Keywords In Python

Like other programming languages, Python also has some reserved words whose meaning is already defined by the Python interpreter these reserved words are known as Keywords. A keyword cannot be

Programming 0 Comments

Python Strings

A string is a sequence or a collection of characters enclosed within single or double-quotes. In Python, the print() function is used to display a string. Since a computer understands