AK Python
1.86K subscribers
39 photos
2 videos
11 files
236 links
Join here to unlock your programming ability
Download Telegram
Tech news..... 🖥

Tesla's co-founder is teaming up with specialized solve the problm of e-bike batteries.
JB Straubel’s Redwood Materials wants to help recycle the e-bike industry’s batteries.

Share support
VIDEO UPDATE: I will be back on Tuesday and let's do code together🌟
New video : Tomorow👍
#ykyg :
Did you know?

Google’s first-ever tweet seemed gibberish to all of us who don’t “speak code”.

It read: “I’m 01100110 01100101 01100101 01101100 01101001 01101110 01100111 00100000 01101100 01110101 01100011 01101011 01111001 00001010”

Which means “I’m feeling lucky” when translated to English.

Share support
Video out now..!👍
Good morning programmers..!☺️
import speech_recognition as sr
import datetime
import subprocess
import pywhatkit
import pyttsx3
import webbrowser

engine=pyttsx3.init()
voices=engine.getProperty('voices')
engine.setProperty('voice',voices[1].id)
recognizer=sr.Recognizer()

def cmd():
with sr.Microphone() as source:
print("Clearing background noises...Pleasw wait")
recognizer.adjust_for_ambient_noise(source,duration=0.5)
print('Ask me anything..')
recordedaudio=recognizer.listen(source)
try:
text=recognizer.recognize_google(recordedaudio,language='en_US')
text=text.lower()
print('Your message:',format(text))

except Exception as ex:
print(ex)
if 'chrome'in text:
a='Opening chrome..'
engine.say(a)
engine.runAndWait()
programName = "C:\Program Files\Google\Chrome\Application\chrome.exe"
subprocess.Popen([programName])
if 'time' in text:
time = datetime.datetime.now().strftime('%I:%M %p')
print(time)
engine.say(time)
engine.runAndWait()
if 'play' in text:
a='opening youtube..'
engine.say(a)
engine.runAndWait()
pywhatkit.playonyt(text)
if 'youtube' in text:
b='opening youtube'
engine.say(b)
engine.runAndWait()
webbrowser.open('www.youtube.com')
while True:
cmd()
Here is the code for previous video
Select the pair that best expresses the relation in the original pair. Unemployed: Worker (English aptitude)
Anonymous Quiz
17%
wit: jester
41%
unaware: sleeper
26%
renovated: house
16%
fallow: land
Check out this useful Video 🔥
Make your own Qrcode scanner using Python
Good afternoon programmers..!😀
import cv2
import webbrowser

cap=cv2.VideoCapture(0)
detector=cv2.QRCodeDetector()
while True:
_,img=cap.read()
data,one, _=detector.detectAndDecode(img)
if data:
a=data
break
cv2.imshow('qrcodescanner app',img)
if cv2.waitKey(1)==ord('q'):
break
b=webbrowser.open(str(a))
cap.release(a)
cv2.destroyAllWindows()
Here is the code for qrcode scanner using python
import pyqrcode
import png
from pyqrcode import QRCode

link='www.wikipedia.com'
url=pyqrcode.create(link)
url.png('wikipediaqrcode.png',scale=6)