Python for Engineers

Solve Problems by Coding Solutions - A Complete solution for python programming

Blog Pages

▼

Validate an IP address using ReGex

›
import re def Validate_It(IP): regex = "(([0-9]|[1-9][0-9]|1[0-9][0-9]|"\ "2[0-4][0-9]|25[0-5])\\.){3}"\ ...

Creating map using python

›
import folium my_map4 = folium.Map(location = [28.5011226,77.4099794],zoom_start =12) folium.Marker([28.704059, 77.102490],popup = 'Delh...

Program for Cocktail Sort

›
def cocktailSort(a): n = len(a) swapped = True start = 0 end = n-1 while (swapped==True): swapped = False for i in range (st...

Program for Gnome Sort

›
def gnomeSort( arr, n): index = 0 while index < n: if index == 0: index = index + 1 if arr[index] >= arr[index - 1]: ...

Program to find the maximum and minimum value node from a circular linked list

›
class Node:         def __init__(self,data):             self.data = data;             self.next = None;     class CreateList:         def _...
‹
›
Home
View web version
Powered by Blogger.