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
▼
Pattern matching with Regex
›
import re phoneNumRegex = re.compile(r'\d\d\d-\d\d\d-\d\d\d\d') mo = phoneNumRegex.search('My number is 415-555-4242.') prin...
Draw Among Us Character with Turtle
›
import turtle color1 = 'yellow' color2 = '' color3 = 'skyblue' color4 = '' s = turtle.getscreen() t = turtl...
Colored Hexagons Turtle
›
import turtle from random import randint x = 20 y = 20 turtle.speed(300) turtle.colormode(255) def move(l, a): turtle.right(...
Generating random strings until a given string is generated
›
import string import random import time possibleCharacters = (string.ascii_lowercase + string.digits + string.ascii_uppercase + ' ...
Check if Binary representation is Palindrome
›
def binaryPallindrome(num): binary = bin(num) binary = binary[2:] return binary == binary[-1::-1] if __name__ == "__main__":...
‹
›
Home
View web version