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
▼
Python program to find day of birth
›
import datetime y = input("Enter year of Birth: "); m = input("Enter month of Birth: "); d = input("Enter date of B...
Python program to shutdown and restart computer
›
import os; check = input("Want to shutdown your computer ? (y/n): "); if check == 'n': check = input("Want to res...
Python program for reading an excel file
›
import xlrd loc=("your own excel path with double slash at drive name like C:\\") wb = xlrd.open_workbook(loc) sheet = wb.sheet...
Python programt for finding ports opened in the website domain
›
import socket; sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex(('www.example.com', port number)...
Python program to print date and time
›
import datetime; print("Today Date & Time:\n"); print(datetime.datetime.today());
‹
›
Home
View web version