Skip to content

Commit 75fd681

Browse files
Merge pull request #2695 from LAbhilashKumar/fixing_issue_informationAbout_pc
Added a simple python script to display system information
2 parents 6822009 + 7a40cc6 commit 75fd681

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)