Shut down computer with python OS library

Опубликовано: 11 Март 2026
на канале: Hero Code
94
4

An amazing trick with OS library in Python.

Do you know that you can shout down your computer with Python?

If you want to do this work, you should first import Os library to your code and the write an if else structure and put this code in else block : 👇👇👇👇

os.system("shutdown /t /s 1")

Shutdown computer with python OS library

✅ Github adress link: https://github.com/HeroCodeYT/Python-...

🔍 hashtags :

#programming

#python