top of page
Search
Rajesh Singh
Apr 6, 20203 min read
Local and Global Variables in Python
Local Variable In all-purpose, a variable that is defined in a block is available in that block only. It is not reachable outside the...
37 views0 comments
Rajesh Singh
Apr 3, 20202 min read
What is Date & Time Functions in Python?
Date, time and datetime modules give a number of functions to contract with dates, times and time intervals in Python. We manipulate...
27 views0 comments
Rajesh Singh
Apr 3, 20202 min read
What is recursion in Python with Examples?
Recursion is the process of defining something in terms of itself. A recursive function is a function defined in terms of itself via...
20 views0 comments
Rajesh Singh
Apr 3, 20202 min read
What is Function Arguments in Python
A function that takes variable number of arguments in Python. Example: def tkd(name,msg): print("Hello",name + ', ' + msg)...
22 views0 comments
Rajesh Singh
Apr 3, 20202 min read
What is Built-in functions?
There are following set of built in functions in Python Function Description abs() ...
29 views0 comments
Rajesh Singh
Apr 3, 20201 min read
What is a function in Python?
Function is a group of related statements that perform a specific task in Python. A function is a block of code which only runs when it...
27 views0 comments
Rajesh Singh
Apr 3, 20203 min read
What is Python Operators?
Operators are used to perform operations on variables and values. There are following operators in Python Arithmetic operators Assignment...
28 views0 comments
Rajesh Singh
Apr 1, 20201 min read
Pass Statement in Python
The pass statement acts as a placeholder and frequently used when there is no need of code but a statement is still essential to make a...
16 views0 comments
Rajesh Singh
Apr 1, 20201 min read
Continue Statement in Python with Example
The continue statement is used within a loop to skip the rest of the statements in the body of loop for the current iteration and jump to...
21 views0 comments
Rajesh Singh
Apr 1, 20201 min read
Break Statement in Python with example
The break statement is used to terminate the loop when a certain condition is gathering. The break statement is usually used inside a...
23 views0 comments
Rajesh Singh
Apr 1, 20201 min read
While Loop in Python with example
While loop is used to iterate over a block of code again and again until a given condition returns false. A program is executed...
20 views0 comments
Rajesh Singh
Apr 1, 20202 min read
For Loop in Python with Example
for () loop is a counting loop and repeats its body for a pre-defined number of times. It is a very versatile statement and has many...
22 views0 comments
Rajesh Singh
Apr 1, 20201 min read
Nested If else statement in Python
If statement is within another if statement then this is called nested of control statements. Example num = -100 if num > 0:...
10 views0 comments
Rajesh Singh
Apr 1, 20201 min read
If elif else statement in python with examples
We use the if..elif..else statement when we need to check multiple conditions. Syntax: if condition: statement1 elif condition_2:...
27 views0 comments
Rajesh Singh
Apr 1, 20201 min read
If else Statement in Python with Examples
if statements is execute a certain block of Python code when a particular condition is true. Whenever If..else statements are execute...
15 views0 comments
Rajesh Singh
Apr 1, 20201 min read
If statement in Python with Example
If statements are control flow statements and it is run a particular code only when a condition is satisfied. It means that to print a...
11 views0 comments
Rajesh Singh
Mar 31, 20201 min read
Python Program for Cube of a Number using Functions
Program: def cube(a): print("The Cube of given number", a*a*a) b = int(input(" Enter any number : ")) cube(b) Output: Please Enter any...
1,119 views0 comments
Rajesh Singh
Mar 31, 20201 min read
Python Program to add Two and Three numbers
Python Program to add two numbers Program: num1 = int (input(" Please Enter the First Number: ")) num2 = int (input(" Please Enter the...
87 views0 comments
Rajesh Singh
Mar 31, 20201 min read
Python Program to find roots of a Quadratic Equation
There are two method for finding roots of quadratic equation: Program: First Method: import cmath a = float (input("Enter the value of a...
149 views0 comments
Rajesh Singh
Mar 31, 20201 min read
Python Program to Check a Number is a Perfect Number
A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6...
2,075 views0 comments
bottom of page