Transfer file using Python

Transfer the files from one place or mobile to another using Python Using socket programming , we can transfer file from computer to computer, computer to mobile, mobile to computer. Python Code: Server Code: Client Code: Output: transferring file computer to mobile This project is contributed by Kajal Chaudhary

Python List Part-2

Q-1.Write a Python program to remove duplicates from a List. Input: [10,20,20,20,30,50] Output: 20 is duplicate 20 is duplicate [10, 20, 30, 50] Python Code: Q-2. Write a Python program to check a List is empty or not. Input:[] Output:list is empty Python Code: Q-3.Write a Python program to get Read more…

Python List Part-1

Q-1. Write a Python program to sum all the items in a List. Input: [1,2,3,0,79,7]Output: 92 (Sum of elements) Python Code: Q-2. Write a Python program to get the largest number from a List. Input:[1,8,3,9,4] Output: 9(largest element in list) Python Code: Q-3. Write a Python program to get the Read more…

Merge Sort

Merge Sort one of the most famous sorting algorithm that uses divide and conquer technique. Merge Sort divides the problem into sub problems and those sub problems are further divided into more sub problem and so on. Once the solution is ready, we combine the sub problems and get sorted Read more…

Selection Sort

Selection sort is noted for its simplicity, specially an in-place comparison sort. It has O(n^2) time complexity, inefficient on larger lists. The algorithm proceeds to find out the minimum element from the list and exchanged with the left most element and similarly finds second minimum element and exchanged with the Read more…

Bubble Sorting

Bubble sort is one of the simplest sorting algorithms but yet it is powerful. Bubble sort compares the element on the index and if that element is greater than i+1th element, it just swaps the element. The worst and average case time complexity of Bubble sort is O(n^2). Let’s see Read more…

Insert math as
$${}$$