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
▼
Stooge Sort
›
def stoogesort(arr, l, h): if l >= h: return if arr[l]>arr[h]: t = arr[l] arr[l] = arr[h] arr[h] = t if h-l + 1 >...
checking the given number is Lucky or Not
›
import math def isLucky(n): ar = [0] * 10 while (n > 0): digit = math.floor(n % 10) if (ar[digit]): return 0 ar[digit] =...
Google Drive Logo Using Turtle
›
import turtle as t t.hideturtle() t.Screen().bgcolor("Black") t.pencolor("white") t.pensize(0) t.begin_fill() t.fillcolo...
Check whether a string starts and ends with the same character or not (using Regular Expression)
›
import re regex = r'^[a-z]$|^([a-z]).*\1$' def check(string): if(re.search(regex, string)): print("Valid") else: ...
Javascript logo using turtle
›
import turtle t=turtle.Turtle() t.penup() t.goto(-20,-70) t.color("#F0DB4F","#F0DB4F") t.begin_fill() t.pendown() t.left...
‹
›
Home
View web version