Python for Engineers

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

Blog Pages

▼

Program to Create a Lap Timer

›
import time starttime=time.time() lasttime=starttime lapnum=1 print("Press ENTER to count laps.\nPress CTRL+C to stop") try: whi...

Program to find yesterday’s, today’s and tomorrow’s date

›
from datetime import datetime, timedelta currentday = datetime.now() yesterday = currentday - timedelta(1) tomorrow = currentday + timedelta...

Program to Print Matrix in Z form

›
arr = [[5, 6, 7, 8],     [1, 2, 3, 4],     [5, 6, 7, 8],     [9, 8, 7, 5]] a = len(arr[0]) i=0 for j in range(0, a-1): print(arr...

gTTS (Google Text-to-Speech)

›
 gTTS (Google Text-to-Speech) a Python library and CLI tool to interface with Google Translate text-to-speech API Features Customizable spee...

Convert Text to Speech

›
from gtts import gTTS import os mytext = 'Welcome to Python for Engineers,A Complete solution for python programming' language = ...
‹
›
Home
View web version
Powered by Blogger.