CodeSolved

Solved Programming Questions & Exercises

Display operating system name

Practice Easy 2346/ Download 24 Views New

Write a program that displays the name of the computer's operating system. For example, the output may be one of the following:

Windows
Linux
Darwin

1 Answers

import platform

print(platform.system())
Ai Download Python

Submit answer

Submitting answers is currently unavailable.

×
×
Close