Skip to content

Commit c4a9f03

Browse files
authored
Add files via upload
0 parents  commit c4a9f03

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

first.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import pyttsx3
2+
import os
3+
#pyttsx3.speak("welcome in my computer")
4+
print(" ================================================================================ ")
5+
print(" Welcome")
6+
print(" ================================================================================ ")
7+
while True:
8+
print("how may i help you:" , end=' ')
9+
p = input()
10+
if("run" in p) and ("firefox" in p):
11+
os.system("firefox")
12+
elif("run" in p) and ("wmplayer" in p):
13+
os.system("wmplayer")
14+
elif("run" in p ) and ( "chrome" in p):
15+
os.system("chrome")
16+
elif( "run" in p ) and ( "notepad" in p):
17+
os.system("notepad")
18+
elif( "run" in p ) and ( "anydesk" in p):
19+
os.system("anydesk")
20+
elif( "run" in p ) and ( "skype" in p) :
21+
os.system("skype")
22+
elif( "run" in p ) and ( "teamviewer" in p):
23+
os.system("teamviewer")
24+
elif( "run" in p ) and ( "vlc" in p):
25+
os.system("vlc")
26+
elif( "run" in p ) and ( "control panel" in p):
27+
os.system("control panel")
28+
elif("run" in p) and ("slack" in p):
29+
os.system("slack")
30+
elif( "run" in p ) and ( "jupyter notebook" in p):
31+
try:
32+
os.system("jupyter notebook")
33+
except WindowsError:
34+
task()
35+
elif("exit"in p) or ("close"in p):
36+
break
37+
else:
38+
print("don't support")
39+

0 commit comments

Comments
 (0)