Detectar o sistema operacional usando Python

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

# Output - 
# OS in my system :  Linux
Rajitha Amarasinghe