Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

detect operating system using python

import platform
my_os = platform.system()
print("OS in my system : ",my_os)

# Output - 
# OS in my system :  Linux
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #detect #operating #system #python
ADD COMMENT
Topic
Name
8+9 =