Skip to content

Commit 7a40cc6

Browse files
committed
Added a simple python script to display system information
1 parent 5a070f0 commit 7a40cc6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Pc_information.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import platform # built in lib
2+
3+
print(f"System : {platform.system()}") # Prints type of Operating System
4+
print(f"System name : {platform.node()}") # Prints System Name
5+
print(f"version : {platform.release()}") # Prints System Version
6+
# TO get the detailed version number
7+
print(f"detailed version number : {platform.version()}") # Prints detailed version number
8+
print(f"System architecture : {platform.machine()}") # Prints whether the system is 32-bit ot 64-bit
9+
print(f"System processor : {platform.processor()}") # Prints CPU model
10+
11+

0 commit comments

Comments
 (0)