PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Shows system and python info
# using "platform"
# CC-BY-SA 4.0 diegoCode
import platform
# machine & os information
print("System information:")
print("- Architecture: ", platform.machine())
print("- CPU info: ", platform.processor())
print("- OS brand; ", platform.system())
print("- OS release name: ", platform.release())
print("- OS version: ", platform.version())
print("- OS uname: ", platform.uname())
# python information
print("")
print("Python information:")
print("- Python build: ", platform.python_build())
print("- Python compiler: ", platform.python_compiler())
print("- Python branch: ", platform.python_branch())
print("- Python implementation: ", platform.python_implementation())
print("- Python revision: ", platform.python_revision())
print("- Python version: ", platform.python_version())
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run