12 Program to take input from different form element of HTML in PHP

Program: 2 Taking multiple type of input from user.php <form action="get.php" method="post">     <fie...
Read More

11 Program to take input from HTML form and find biggest among 2 number in PHP

Program: <html> <body>     <form action="" method="post">         First Value: <input type=...
Read More

10 Program to demonstrate Multi-Dimensional Array in PHP

Program: <?php $person = array(   array(78,52,89),   array(7,42,89),   array(78,55,49) ); echo $person[0][1]; foreach( ...
Read More

4 Program to implement Toast in android studio

AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.an...
Read More

24 Program to print the number in words for example: 1234=> One Two Three Four in Python

Program: num = int(input("Enter any number:")) t = list() while num > 0:     rem = num %10       if rem == 0:      ...
Read More

23 Program to find the repeated items of a tuple using Python

Program: t = [int(x) for x in input("Enter any value:").split()] t = tuple(t) print("Repeated Values:") for i in range...
Read More

22 Program to create a tuple and find the minimum and maximum number from it using Python

Program: t = tuple() t = [int(x) for x in input("Enter any 5 value:").split() ] minimum = t[0] maximum = t[0] for i in ...
Read More

21 Program to select the even items of a list using Python

Program: l = list() l = [x for x in input("Enter any number of value: ").split()] length = len(l) print("Even items...
Read More

20 Program to find common items from two lists using Python

Program: l1 = list() l1 = [x for x in input("Enter any 5 value for l1: ").split()] l2 = list() l2 = [x for x in input(...
Read More

19 Program to reverse a list using Python

Program: l = list() l = [x for x in input("Enter any 5 value: ").split()] length = len(l) print("Reverse List:",...
Read More

18 Program to get the smallest number from a list using Python

Program: l = list() l = [int(x) for x in input("Enter any 5 value: ").split()] small = l[0] for i in l:     if small ...
Read More

17 Program to get the largest number of a list using Python

Program: l = list() l = [int(x) for x in input("Enter any 5 value: ").split()] large = l[0] for i in l:     if large ...
Read More

16 Program to multiples all the items in a list using Python

Program: l = list() l = [int(x) for x in input("Enter any 5 value: ").split()] multi = 1 for i in l:     multi = multi *...
Read More

13 Program that takes a number and checks whether it is a Palindrome or not using python

Program: num = int(input("Enter any number:")) onum = num rnum = 0 while num > 0:     rem = num % 10     rnum = (rnum *...
Read More

12 Program takes in a number and finds the sum of digits in a number using Python

Program: num = int(input("Enter any number:")) onum = num snum = 0 while num > 0:     rem = num % 10     snum = snum +...
Read More

11 Program to reverse a given number using Python

Program: num = int(input("Enter any number:")) onum = num rnum = 0 while num > 0:     rem = num % 10     rnum = (rnum *...
Read More

10 Program to calculate factorial of a number using python

Program: num = int(input("Enter any number:")) fact = 1 for i in range(0,num):     fact = (fact * i) + fact print(fact) Ou...
Read More

9 Program to print Fibonacci Series using Python

Program: num = int(input("Enter any number:")) f0 = 0 f1 = 1 f2 = 1 for i in range(num):     print(f0,end="  ")   ...
Read More

8 Program to print all even numbers between 1 to 100 using while loop in Python

Program: i = 1 while i <= 100:     if i %2 == 0 :         print(i,end="  ")     i+=1 Output:
Read More

7 Program to print Right Angle Triangle in Python

Required Output: Program: star = int(input("Enter any number:")) for i in range(1,star+1):     while(i>0):         ...
Read More

6 Program to Print Diamond Pattern in Python

Required Output: Program: star = int(input("Enter any number:")) space = star // 2 for i in range(1,star+1,2):     f...
Read More

5 Program that takes the marks of 5 subjects and display the grades using Python

Program: m1,m2,m3,m4,m5 = input("Enter 5 Subject Marks").split(' ') m1 = int(m1) m2 = int(m2) m3 = int(m3) m4 =...
Read More

4 Program to find out absolute value of an input number in Python

Program: num = float(input("Enter any Number:") if num < 0:     print("Number: ",-num) else:     print("Numb...
Read More

3 Program to check if a Number is positive, negative or zero in Python

Program: num = int(input("Enter any Number:")) if num < 0:     print("Number is Negative") elif num > 0: ...
Read More

2 Program to check year is Leap Year or not in Python

Program: num = int(input("Enter any year:")) if num % 4 == 0:     print(num ,"Year is Leap Year") else:     pri...
Read More

6 PHP inside HTML

Program: <html> <body>     <select>         <?php                 for($i=0;$i<50;$i++)                 {          ...
Read More

1 Program to find square root of a number in Python

Program: number = int(input("Enter any number:")) sqrt = number ** 0.5 print(" Number: ",sqrt) Output:
Read More

#6 Datatypes in Python

Mutable and Immutable Object’s Mutable Object : The value of mutable object can be modified in place after  it’s creation....
Read More