Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- import webbrowser
- import os
- import sys
- def Main():
- if sys.platform == "win32":
- os.system("cls")
- os.system("title Coronavrius Map 2020")
- print()
- print("Welcome to the Coronavrius Map 2020\n")
- print("Please select an option\n")
- print("[1] bing coronavirus map\n")
- print("[2] COVID-19 Map - Johns Hopkins Coronavirus Resource Center\n")
- covidmapone2020choice = int(input("#>:\t"))
- if covidmapone2020choice == 1:
- webbrowser.open("https://www.bing.com/covid/local/unitedstates")
- if covidmapone2020choice == 2:
- webbrowser.open("https://coronavirus.jhu.edu/map.html")
- elif sys.platform == "linux" or sys.platform == "linux2":
- os.system("clear")
- print()
- print("Welcome to the Coronavrius Map 2020\n")
- print("Please select an option\n")
- print("[1] bing coronavirus map\n")
- print("[2] COVID-19 Map - Johns Hopkins Coronavirus Resource Center\n")
- covidmapone2020choice = int(input("#>:\t"))
- if covidmapone2020choice == 1:
- webbrowser.open("https://www.bing.com/covid/local/unitedstates")
- if covidmapone2020choice == 2:
- webbrowser.open("https://coronavirus.jhu.edu/map.html")
- elif sys.platform == "darwin":
- os.system("clear")
- print()
- print("Welcome to the Coronavrius Map 2020\n")
- print("Please select an option\n")
- print("[1] bing coronavirus map\n")
- print("[2] COVID-19 Map - Johns Hopkins Coronavirus Resource Center\n")
- covidmapone2020choice = int(input("#>:\t"))
- if covidmapone2020choice == 1:
- webbrowser.open("https://www.bing.com/covid/local/unitedstates")
- if covidmapone2020choice == 2:
- webbrowser.open("https://coronavirus.jhu.edu/map.html")
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement