import platform import webbrowser from urllib.parse import quote_plus
def detect_os_name():
sys = platform.system()
if sys == "Windows":
rel = platform.release()
if rel == "10":
return "Windows 10"
if rel == "11":
return "Windows 11"
return "Windows"
if sys == "Darwin":
return "macOS"
if sys == "Linux":
return "Linux"
return "Unknown OS"
def main():
os_name = detect_os_name()
query = f"How to take a screenshot on {os_name}"
url = f"https://www.google.com/search?q={quote_plus(query)}"
webbrowser.open(url)
17
u/TheSupervillan Sep 04 '25
I recommend start doing screenshots! It’s not that hard.