Advertisement
Adm1n_0v3rride

Coronavrius Map 2020

Nov 30th, 2020 (edited)
1,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.09 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. import webbrowser
  5. import os
  6. import sys
  7.  
  8. def Main():
  9.    
  10.     if sys.platform == "win32":
  11.        
  12.         os.system("cls")
  13.  
  14.         os.system("title Coronavrius Map 2020")
  15.  
  16.         print()
  17.  
  18.         print("Welcome to the Coronavrius Map 2020\n")
  19.  
  20.         print("Please select an option\n")
  21.  
  22.         print("[1] bing coronavirus map\n")
  23.  
  24.         print("[2] COVID-19 Map - Johns Hopkins Coronavirus Resource Center\n")
  25.  
  26.         covidmapone2020choice = int(input("#>:\t"))
  27.  
  28.         if covidmapone2020choice == 1:
  29.            
  30.             webbrowser.open("https://www.bing.com/covid/local/unitedstates")
  31.  
  32.         if covidmapone2020choice == 2:
  33.            
  34.             webbrowser.open("https://coronavirus.jhu.edu/map.html")
  35.  
  36.     elif sys.platform == "linux" or sys.platform == "linux2":
  37.        
  38.         os.system("clear")
  39.        
  40.         print()
  41.  
  42.         print("Welcome to the Coronavrius Map 2020\n")
  43.  
  44.         print("Please select an option\n")
  45.  
  46.         print("[1] bing coronavirus map\n")
  47.  
  48.         print("[2] COVID-19 Map - Johns Hopkins Coronavirus Resource Center\n")
  49.  
  50.         covidmapone2020choice = int(input("#>:\t"))
  51.  
  52.         if covidmapone2020choice == 1:
  53.            
  54.             webbrowser.open("https://www.bing.com/covid/local/unitedstates")
  55.  
  56.         if covidmapone2020choice == 2:
  57.            
  58.             webbrowser.open("https://coronavirus.jhu.edu/map.html")
  59.  
  60.     elif sys.platform == "darwin":
  61.        
  62.         os.system("clear")
  63.        
  64.         print()
  65.  
  66.         print("Welcome to the Coronavrius Map 2020\n")
  67.  
  68.         print("Please select an option\n")
  69.  
  70.         print("[1] bing coronavirus map\n")
  71.  
  72.         print("[2] COVID-19 Map - Johns Hopkins Coronavirus Resource Center\n")
  73.  
  74.         covidmapone2020choice = int(input("#>:\t"))
  75.  
  76.         if covidmapone2020choice == 1:
  77.            
  78.             webbrowser.open("https://www.bing.com/covid/local/unitedstates")
  79.  
  80.         if covidmapone2020choice == 2:
  81.            
  82.             webbrowser.open("https://coronavirus.jhu.edu/map.html")
  83.  
  84.  
  85.  
  86. Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement