import platform my_os = platform.system() print("OS in my system : ",my_os) # Output - # OS in my system : Linux