AK Python
1.86K subscribers
39 photos
2 videos
11 files
236 links
Join here to unlock your programming ability
Download Telegram
from tkinter import *
import wikipedia

def on_click():
q=get_q.get()
text.insert(INSERT , wikipedia.summary(q))

root=Tk()
root.title("Application title")
question=Label(root,text='Question')
question.pack()
get_q=Entry(root,bd=5)
get_q.pack()
submit=Button(root,text='Search',command=on_click)
submit.pack()
text=Text(root)
text.pack()

root.mainloop()
Code for Wikipedia search app
#YKYG

A Half byte is know as
Anonymous Quiz
5%
Data
7%
Byte
53%
Nibble
35%
Bit
from tkinter import *
from tkinter import messagebox
import pyspeedtest

def logic():
st=pyspeedtest.SpeedTest("www.google.com")
a=(str(st.download()) + "[Bytes per second]")
messagebox.showinfo("Your Download speed:",a)

top=Tk()
top.title('AK speed Test')
top.geometry('100x100')
filename=PhotoImage(file="Path of your image.")
background_label=Label(top,image=filename)
background_label.place(x=0,y=0,relwidth=1,relheight=1)

b=Button(top,text='Click to see the Internet speed',font=('San serif',20),bg='Yellow',height=1,width=30,command=logic).pack()
top.mainloop()
Full code for Internet speed tester app in python
Share & Support ❤️
#YKYG

Python uses to _______ run the code.
Anonymous Quiz
28%
Compiler
70%
Interpreter
2%
Translator
‼️ Amazon price tracker video will be out on tomorrow

Subscribe & stay tuned❤️
AK Python
https://docs.python.org/3.9/whatsnew/3.9.html
Python 3.9 released ( Official documentation )
Check out the new video guys
import requests
from bs4 import BeautifulSoup

headers={
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
}

response=requests.get("Paste your product link",headers=headers)
soup=BeautifulSoup(response.content,'html.parser')

def check_price():
title=soup.find(id="productTitle").get_text()
price=soup.find(id="priceblock_ourprice").get_text().strip()
print("Product name & specs : ",title.strip())
print("Product cost:",price)

check_price()
Code for Amazon price tracker
Share & Support ❤️
#YKYG
Stack uses
Anonymous Quiz
75%
LIFO
25%
FIFO
url shortner.gif
13 MB
Url shortner project using python ( Next video👆) Stay tuned❤️
#YKYG
Which one is the first fully supported 64-bit operating system?
Anonymous Quiz
22%
Windows vista
32%
Linux
15%
Mac
31%
Windows XP