top of page
Search
Rajesh Singh
Jun 16, 20211 min read
Python program to find square root of given number
Program: n=float(input("Enter a number: ")) a=n**.5 print("The square roots of given number is ", a) Output: Enter a number: 16 The...
30 views0 comments
Rajesh Singh
May 23, 20211 min read
Python program to print series 1,4,9......15 terms
Program: for i in range(1,16): j=i*i print(j) Output: 1 4 9 16 25 36..................225 Python program to print series 1,4,9......15...
1,050 views0 comments
Rajesh Singh
May 23, 20211 min read
Python program to print 10 even numbers in reverse order
Program: a=20 while a>=2: print(a) a=a-2 Output: 20 18 16 14 12 10 8 6 4 2 Python program to print 10 even numbers in reverse order Video:
8,389 views0 comments
Rajesh Singh
May 21, 20211 min read
Python program to input principle amount, rate of interest and time and find to Simple interest.
Program: p=int(input("Enter the Principle Amount : ")) r=float(input("Enter the rate of interest : ")) t=int(input("Enter the Time Period...
44 views0 comments
Rajesh Singh
May 21, 20211 min read
Python program to input temperature in Celsius and convert it into Fahrenheit.
Program: C=int(input("Enter the temperature in Celsius : ")) F=1.8*C+32 print("Temperature in Fahrenheit = ", F) Output: Enter the...
56 views0 comments
Rajesh Singh
May 21, 20211 min read
Write a Python program to find average of three numbers
Program: a = int (input(" Please Enter the First Number: ")) b = int (input(" Please Enter the second number: ")) c = int (input(" Please...
38,835 views0 comments
Rajesh Singh
Feb 24, 20211 min read
Python Function Program without input argument and without return value
This type of function does not have input arguments but has a value to the main program. Write a program to generate the following...
295 views1 comment
Rajesh Singh
Feb 24, 20211 min read
Python program without input argument and with return value
This type of function does not have input arguments but has a value to return to the main program. Write a program to calculate and print...
36 views0 comments
Rajesh Singh
Feb 24, 20211 min read
Python Function Program with argument and without return value
This type of function has one or more input arguments but does not have any value to return to the main program. Write a program to input...
1,763 views1 comment
Rajesh Singh
Feb 24, 20211 min read
Python Function Program with input argument and with return value
This type of function has one or more input argument and also a value to return to the main program. Write a program to input a number...
13 views0 comments
Rajesh Singh
Feb 23, 20211 min read
Python String Programs
Write a program to input a sentence and count the number of words in it. Program: s=input("Enter the sentence: ") k=0 for i in s: if...
27 views0 comments
Rajesh Singh
Feb 23, 20211 min read
Pythons Library Math Functions Programs
Write a program to input the value of x and calculate the result of the following equation: ex +cos x+ √ X Program: import math...
19 views0 comments
Rajesh Singh
Feb 5, 20211 min read
Python File Programs
Write a program to create a text file of students to store Roll No., Name and three subject marks obtained by the students in a class of...
40 views1 comment
Rajesh Singh
Nov 11, 20201 min read
Python program to print sum of n natural numbers
Program: a=int(input("Enter a number: ")) sum = 0 while(a > 0): sum=sum+a a=a-1 print("The sum of natural numbers is",sum) Output: Enter...
85 views0 comments
Rajesh Singh
Nov 10, 20201 min read
Python Program using function to calculate addition, substraction, multiplication and division
def add(a,b): print("Addition of two numbers", a+b) def sub(a,b): print("Subtraction of Two numbers",a-b) def mul(a,b):...
1,873 views0 comments
Rajesh Singh
Nov 5, 20202 min read
Python Programs to print pattern Number, Pyramid, Star, Diamond and Letter Pattern
Write a python program for given Numbers Pattern using a for loop 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 Program: for num in range(6): for i in...
342 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