Hello Programmers.
#ProgrammingWithArshad
In this video we had coded a simple program which will take input from user and opens website in google chrome according to that input...
For More Amazing Programs Like This Visit This Playlist : / @arshadkareem7265
SOURCE CODE :
"
import webbrowser
print(" Enter : \n 1 -- ) Whatsapp \n 2 -- ) Facebook \n 3 -- ) Youtube \n 4 -- ) Github \n 5 -- ) My Personal Website \n 6 -- ) My Youtube Channel \n 7 -- ) Instagram")
cmd = input("Enter Any Number : ")
if cmd == '1':
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open("https://web.whatsapp.com/")
elif cmd == '2':
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open("https://www.facebook.com/")
elif cmd == '3':
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open("http://www.youtube.com")
elif cmd == '4':
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open("https://github.com/")
elif cmd == '5':
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open("https://arshad272.github.io/home.html")
elif cmd == '6':
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open(" / @arshadkareem7265 ")
elif cmd == '7':
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open("https://www.instagram.com/")
else:
print("Invalid Option Chosen")
"
Like, Comment, Share And Subscribe To Programming With Arshad
----- Channel Link -----
/ @arshadkareem7265
----- My Website -----
https://arshad272.github.io/home.html
----- Contact Me -----
https://arshad272.github.io/contact.html
----- Instagram -----
https://www.instagram.com/invites/con...
----- WhatsApp Group -----
https://chat.whatsapp.com/BptwWNWZ0RU...
----- LinkedIn -----
/ arshad-k-788855185
----- Twitter -----
https://twitter.com/Arshad84950201?s=08