atlas news
    
Python for Engineers
01  janvier     04h00
Managing Students
   import osimport platformglobal listStd listStd Amal , Appu , Malavika , Seetha def manageStudent : global bye bye bye print Welcome To Student Management System Enter : To View Student’s List Enter : To Add New Student Enter : To Search...
31  octobre     04h00
Contact Storing
   names phone numbers num for i in range num : name input Name: phone number input Phone Number: names.append name phone numbers.append phone number print nName t t tPhone Number n for i in range num : print ...
25  octobre     04h00
Tic Tac Toe Board
   import turtle ws turtle.Screen t turtle.Turtle t.color Blue t.width t.speed for i in range : t.forward t.left t.penup t.goto, t.pendown t.forward t.penup t.goto, t.pendown t.forward t.penup t.goto , t.pendown t.left t.forward t.penup t...
20  octobre     04h00
Sorting Hotel info Using Given Data
   class Hotel : sortParam ’name’ def init self gt; None: self.name ’’ self.roomAvl self.location ’’ self.rating int self.pricePr def lt self,other : getattr self,Hotel.sortParam lt;getattr other,Hotel.sortParam classmethod def sortByName cls : cls.sortParam ’name’ ...
16  octobre     04h00
Sales Management App
   import tkinter as tkfrom tkinter import messageboximport sqlite root window tk.Tk root window.title Sales Management App root window.geometry x name entry text tk.StringVar id entry text tk.StringVar quantity sold entry text tk.StringVar quantity left entry text tk.StringVar...
09  octobre     04h00
App For Download File from URL
   from tkinter import from tkinter import messageboxfrom PIL import ImageTk, Imageimport tkinter.font as fontimport requestsimport reimport validatorsimport osfrom urllib.parse import urlparseroot Tk root.title Download File from URL icon PhotoImage file ’image.png’ root.iconphoto False, icon...
30  septembre     04h00
Loan Managing App
   import sqlite from tkinter import from tkinter import ttk, messageboxclass LoanManager: def init self, root : self.root root self.root.title Loan Managing app self.root.geometry x ...
26  septembre     04h00
Watermark on images
   import cv import numpy as npimport globimport osfrom numpy. distributor init import filenamelogo cv .imread logo.jpg h logo, w logo, logo.shapeimages path glob.glob flowers . print Adding watermark for img path in images path: img cv .imread img path h...
23  septembre     04h00
Document checker
   import hashlibfrom difflib import SequenceMatcherdef hash file fileName , fileName : h hashlib.sha with open fileName , rb as file: chunk while chunk b’’: chunk file.read h .update chunk with open fileName , rb as file: chunk while chunk...
17  septembre     04h00
Expense Tracker
   import datetimeimport sqlite from tkcalendar import DateEntryfrom tkinter import import tkinter.messagebox as mbimport tkinter.ttk as ttkconnector sqlite .connect Expense Tracker.db cursor connector.cursor connector.execute ’CREATE TABLE IF NOT EXISTS ExpenseTracker ID INTEGER PRIMARY KEY...
06  septembre     04h00
Webcam Sketch
   import cv import numpy as npdef webcam sketch image : img gray cv .cvtColor image, cv .COLOR BGR GRAY img gray blur cv .GaussianBlur img gray, ,, canny edges cv .Canny img gray blur, , ret, mask cv .threshold canny edges, ,...
31  août     04h00
controlling brightness by hand detection
   import cv import mediapipe as mpfrom math import hypotimport screen brightness control as sbcimport numpy as npmpHands mp.solutions.handshands mpHands.Hands static image mode False, model complexity, min detection confidence ., min tracking confidence ., max num hands Draw mp...
26  août     04h00
Youtube video downloader
   import tkinter as tkfrom tkinter import from pytube import YouTubefrom tkinter import messagebox, filedialogdef Widgets : head label Label root, text quot;YouTube Video Downloader quot;, padx , pady , font quot;SegoeUI quot;, bg quot;palegreen quot;, fg...
22  août     04h00
Counting Fingers
   import cv import mediapipe as mpcap cv .VideoCapture mp Hands mp.solutions.handshands mp Hands.Hands mpdraw mp.solutions.drawing utilsfinger Coord , , , , , , , thumb Coord , while True: success, image cap.read RGB image cv ...
12  août     04h00
sudoku
   board , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , ...
07  août     04h00
snowman
   import turtleturtle.speed turtle.setup , turtle.bgcolor black turtle.penup turtle.goto, turtle.pendown turtle.color c f b turtle.begin fill turtle.circle turtle.end fill turtle.penup turtle.goto, turtle.pendown turtle.color white turtle.begin fill turtle...
31  juillet     04h00
Extract Links
   import requestsfrom bs import BeautifulSoupurl ’https: www.pythonforengineers.in ’reqs requests.get url soup BeautifulSoup reqs.text, ’html.parser’ urls for link in soup.find all ’a’ : print link.get ’href’
24  juillet     04h00
Scraping TV Rating
   import requestsfrom bs import BeautifulSoupdef getdata url : r requests.get url return r.texthtmldata getdata https: barcindia.co.in data insights soup BeautifulSoup htmldata, ’html.parser’ data ’’for i in soup.find all ’tbody’ : data data i.get text datadata ’’.join filter...
17  juillet     04h00
Caller Info
   import requestsimport pandas as pdfrom bs import BeautifulSoupdef getdata url : r requests.get url return r.text Enter your own API key api ’YOUR API KEY’number ’ ’country ’IN’ pass Your API, number and country codehtmldata getdata ’http: apilayer.net api validate access...
13  juillet     04h00
Digital clock
   import timeimport datetime as dtimport turtlet turtle.Turtle t turtle.Turtle s turtle.Screen s.bgcolor green sec dt.datetime.now .secondmin dt.datetime.now .minutehr dt.datetime.now .hourt .pensize t .color ’black’ t .penup t .goto , t .pendown for i in range : t ...
09  juillet     04h00
openai
   import openaiopenai.api key your secret api key while True: model engine text davinci prompt input ’Enter new prompt: ’ if ’exit’ in prompt or ’quit’ in prompt: break completion openai.Completion.create...
30  juin     04h00
Scientific calculator
   import tkinter as tkfrom math import convert constant inverse convert constant btn params ’padx’: , ’pady’:, ’bd’:, ’fg’: ’white’, ’bg’: ’black’, ’font’: ’arial’, , ’width’:, ’height’:, ’relief’: ’flat’, ’activebackground’...
27  juin     04h00
music player
   import pygamefrom pygame import mixerpygame.init mixer.init screen pygame.display.set mode , mixer.music.load audio.mp mixer.music.play print Press ’p’ to pause ’r’ to resume print Press ’q’ to quit running Truewhile running: for event in pygame.event.get ...
23  juin     04h00
Voice Assistant
   import pyttsx import speech recognition as srdef take commands : r sr.Recognizer with sr.Microphone as source: print ’Listening’ r.pause threshold . audio r.listen source ...
17  juin     04h00
Typing Speed Test Application
   from tkinter import import ctypesimport randomimport tkinterctypes.windll.shcore.SetProcessDpiAwareness storage Tk storage.title ’Typing Speed Test’ storage.geometry ’ x ’ storage.option add Label.Font , consolas storage.option add Button.Font , consolas def handlingLabels ...