Python for Engineers
Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
(Move to ...)
Code
Top 10 Blogs
NumPy Tutorials
Distributions
Self Learning
IDE
About
▼
program to create a doubly linked list from a ternary tree
›
class Node: def __init__(self,data): self.data = data; self.left = None; self.middle = None; ...
Program to write numbers 1 to 100 in a file
›
class File: def Create_file(self,fname): file = open(fname , 'w+') file.close() print("File Created...
1 comment:
Heap Sort in Python
›
from heapq import heappop, heappush def heapsort(list1): heap = [] for ele in list1: heappush(heap, ele) ...
Bubble Sort in Python
›
def bubble_sort(list1): for i in range(0,len(list1)-1): for j in range(len(list1)-1): if(list1[j]>list1[j+1...
Program to Find HCF(Highest Common Factor)
›
def calculate_hcf(x, y): if x > y: smaller = y else: smaller = x for i in range(1,smaller + 1): ...
‹
›
Home
View web version