 ### A program in python to check if a triangle is an equilateral or an isosceles or a scalene triangle.

In the above Python program to check if a triangle is an equilateral or an isosceles or a scalene triangle, we will use conditional statements which will give us the desired results. For Equilateral triangle all sides should be equal, For Isosceles triangle any two sides should be equal and if no sides are equal…

### A program in python to convert all the characters into uppercase and lowercase and eliminate duplicate letters from a given sequence.

In the above Python program to convert all the characters into uppercase and lowercase and eliminate duplicate letters from a given sequence, we have used built-in functions upper() and lower() and then to list all the characters map() function is used. Sample Output: Original Characters are: {‘G’, ‘u’, ‘E’, ‘B’, ‘T’, ‘s’, ‘e’, ‘a’} After…

### A program in python to count the number of each character in a text file.

In the above Python program to count the number of each character in a text file, need to import two libraries and then open() method will open the file name in read only mode and built-in functions will count each character in the text file. Sample Output: Enter File Name: sample.txt Counter({‘ ‘: 106, ‘E’:…

### Python program to find the type of the progression and the next successive member of the three successive members of a sequence.

For the above Python program to find the Arithmetic and Geometric Progression of a sequence, you need to understand that An arithmetic progression (AP) is a sequence of numbers such that the difference of any two successive members of the sequence is a constant. For instance, the sequence 3, 5, 7, 9, 11, 13, ….

### A program in Python that will generate a list of all possible permutations from a given collection of distinct numbers.

In the above Python program to find the permutation for a given collection of numbers, the Program is extracting all the elements one by one and then placing them in the first position and then recurring the remaining list. The term permutation refers to a mathematical calculation of the number of ways a particular set…

### Python program to remove a specified item using array index.

In the above Python program to remove an item from an array using index value, we have used a built in method pop() which will remove the item passed inside it and print the new array. Sample Output: Original array: array(‘i’, [4, 7, 3, 8, 1, 6]) Remove the fourth item form the array: New…