216k views
1 vote
True or False: Python code can include a script that returns the operating system platform

your code is running on with the .sys

User Atario
by
7.2k points

1 Answer

8 votes

True

import sys

print(sys.platfom)

This will print, to the console, which type of platform is running.

User Sergey Anisimov
by
8.1k points