The most difficult part of managing multiple accounts is generating a different strong password for each. Source Code: import pyttsx3 import speech_recognition as sr import wikipedia import webbrowser import os # init pyttsx engine = pyttsx3.init(“sapi5”) voices = engine.getProperty(“voices”) tProperty(‘voice’, voices.id) # 1 for female and 0 for male voice def speak(audio): engine.say(audio) nAndWait() def take_command(): r = sr.Recognizer() with sr.Microphone() as source: print(“Listening…”) r.pause_threshold = 1 audio = r.listen(source) try: print(“Recognizing…”) query = r.recognize_google(audio, language=’en-in’) print(“User said:” + query + “\n”) except Exception as e: print(e) speak(“I didnt understand”) return “None” return query if _name_ = ‘_main_’: speak(“Amigo assistance activated “) speak(“How can i help you”) while True: query = take_command().lower() if ‘wikipedia’ in query: speak(“Searching Wikipedia …”) query = query.replace(“wikipedia”, ”) results = wikipedia.summary(query, sentences=2) speak(“According to wikipedia”) speak(results) elif ‘are you’ in query: speak(“I am amigo developed by Jaspreet Singh”) elif ‘open youtube’ in query: speak(“opening youtube”) webbrowser.open(“”) elif ‘open google’ in query: speak(“opening google”) webbrowser.open(“”) elif ‘open github’ in query: speak(“opening github”) webbrowser.open(“”) elif ‘open stackoverflow’ in query: speak(“opening stackoverflow”) webbrowser.open(“”) elif ‘open spotify’ in query: speak(“opening spotify”) webbrowser.open(“”) elif ‘open whatsapp’ in query: speak(“opening whatsapp”) loc = “C:\\Users\\jaspr\\AppData\\Local\\WhatsApp\\WhatsApp.exe” os.startfile(loc) elif ‘play music’ in query: speak(“opening music”) webbrowser.open(“”) elif ‘play music’ in query: speak(“opening music”) webbrowser.open(“”) elif ‘local disk d’ in query: speak(“opening local disk D”) webbrowser.open(“D://”) elif ‘local disk c’ in query: speak(“opening local disk C”) webbrowser.open(“C://”) elif ‘local disk e’ in query: speak(“opening local disk E”) webbrowser.open(“E://”) elif ‘sleep’ in query: exit(0) Password Generator Next in the list of the top 10 advanced python projects with source code in 2022 is Password Generator. Guess!”) def pick(): guessesTaken = 0 while guessesTaken =1: #if they are in range guessesTaken=guessesTaken+1 #adds one guess each time the player is wrong if guessesTakennumber: print(“The guess of the number that you have entered is too high”) if guess != number: time.sleep(.5) print(“Try Again!”) if guess=number: break #if the guess is right, then we are going to jump out of the while block if guess>200 or guess Create your own voice assistant using this Python program. I am thinking of a number between 1 and 200”) time.sleep(.5) print(“Go ahead. Source Code: import random #bring in the random number import time number=random.randint(1, 200) #pick the number between 1 and 200 def intro(): print(“May I ask you for your name?”) name=input() #asks for the name print(name + “, we are going to play a game. It is one of the best advanced python projects with source code to try in 2022. Every time a user gives a wrong answer, another hint pops up to make it easier for them. So, the system will generate a number from 0 to 200 and ask the user to guess it after a clue. This article features the list of the top 10 advanced python projects with source code in 2022: Number Guessing A fun python project to guess the number after getting a few hints from the computer. So, if you are at that level now, you can work on all the advanced Python projects. ![]() If you have learned the fundamental Python libraries and some of the external libraries, you should now know how to install external libraries and work with them. So to master Python for any field, you have to work on python projects. ![]() Due to its readability and beginner-friendly nature, it has been accepted by various industries. Almost, 8.2 million developers all over the globe use Python for their projects which is more than Java now. Here is the list of the top 10 advanced python projects with source code in 2022 Python has been in the top 10 popular programming languages for a long time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |