-
Notifications
You must be signed in to change notification settings - Fork 7
/
day3.py
executable file
·39 lines (31 loc) · 945 Bytes
/
day3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python3
# now importing time library
import webbrowser
import time
import subprocess
option='''
Press 1 to start your vlc media player :
Press 2 to play your fav song in youtube :
Press 3 to search something on google :
Press 4 to send whatsapp message to your fav number :
Press 5 to check current time and date :
press 6 to reboot your machine :
'''
print(option)
# taking input from user
# 1 st
choice=input()
# input function will take input in str format
# conditional state
if choice == '5' :
# to connect our BIOS time
current_time=time.ctime()
print(current_time)
elif choice == '1' :
# to connect os level application we use subprocess
subprocess.getoutput('vlc')
elif choice == '3' :
data=input("type your search :---> ")
webbrowser.open_new_tab('https://www.google.com/search?q='+data)
else :
print("hiiii")