top of page
Search
Command Line Arguments in Python
Command Line Arguments are the arguments that are specified after the name of the program in the command line shell of the operating...

Rajesh Singh
Apr 8, 20202 min read
Python File Methods
A file object permits us to utilize, access and control all the user accessible files. One can read and write any such files. At the...

Rajesh Singh
Apr 6, 20203 min read
What is a file in Python?
File is a named location on disk to store related information. It is used to permanently store data in a non-volatile memory. Firstly we...

Rajesh Singh
Apr 6, 20202 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...

Rajesh Singh
Apr 6, 20203 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...

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...

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)...

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() ...

Rajesh Singh
Apr 3, 20202 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...

Rajesh Singh
Apr 3, 20201 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...

Rajesh Singh
Apr 3, 20203 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...

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...

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...

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...

Rajesh Singh
Apr 1, 20201 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...

Rajesh Singh
Apr 1, 20202 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:...

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:...

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...

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...

Rajesh Singh
Apr 1, 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...

Rajesh Singh
Mar 31, 20201 min read
bottom of page