22
33### Introduction
44- The ** platform** module in Python is used to access the underlying platform’s data,
5- such as, hardware, operating system, and interpreter version information.
5+ such as hardware, operating system, and interpreter version information.
66- This module tries to retrieve as much platform-identifying data as possible.
77
88### How to install platform module in python?
9- - ** platform** module is come with python basic library so we don't need to install it Externally.
9+ - ** platform** module comes with python basic library so we don't need to install it Externally.
1010
1111### How to import platform module
1212You can start with importing the * platform* module in your program
@@ -29,7 +29,7 @@ import platform
2929import platform as pl
3030```
3131
32- ### How to get list of avilables function in platform
32+ ### How to get the list of available function in platform
3333``` python
3434# to Get the help of platform module use
3535print (help (platform))
@@ -38,7 +38,8 @@ print(help(platform))
3838print (dir (platform))
3939```
4040
41- ## Important Functions From platfrom Module
41+
42+ ## Important Functions From platform Module
4243
4344### 1.system()
4445- ** System()** returns the Operating system Name e.g. 'Linux','windows','Java'
@@ -51,9 +52,11 @@ import platform
5152name= platform.system()
5253
5354print (name)
54- # Result:Windows
5555```
56-
56+ Output:
57+ ```
58+ Windows
59+ ```
5760### 2.architecture()
5861- Returns a tuple (bits, linkage) which contain information about the bit architecture
5962and the linkage format used for the executable.
@@ -66,7 +69,10 @@ import platform
6669name= platform.architecture()
6770
6871print (name)
69- # Result:('64bit', 'WindowsPE')
72+ ```
73+ Output:
74+ ```
75+ ('64bit', 'WindowsPE')
7076```
7177
7278### 3.node()
@@ -81,7 +87,10 @@ import platform
8187name= platform.node()
8288
8389print (name)
84- # Result:'EKPubgikar'
90+ ```
91+ Output:
92+ ```
93+ 'EKPubgikar'
8594```
8695
8796### 4 .processor()
@@ -93,7 +102,10 @@ import platform
93102# Get processor name
94103name= platform.processor()
95104print (name)
96- # Result:'Intel64 Family 6 Model 58 Stepping 9, GenuineIntel'
105+ ```
106+ Output:
107+ ```
108+ 'Intel64 Family 6 Model 58 Stepping 9, GenuineIntel'
97109```
98110
99111### 5.machine()
@@ -106,7 +118,10 @@ import platform
106118name= platform.machine()
107119
108120print (name)
109- # Result:'AMD64'
121+ ```
122+ Output:
123+ ```
124+ 'AMD64'
110125```
111126
112127### 6.version()
@@ -119,7 +134,10 @@ import platform
119134name= platform.version()
120135
121136print (name)
122- # Result:'10.0.17763'
137+ ```
138+ Output:
139+ ```
140+ '10.0.17763'
123141```
124142
125143### 7.python_version()
@@ -132,7 +150,10 @@ import platform
132150name= platform.python_version()
133151
134152print (name)
135- # Result:'3.7.3'
153+ ```
154+ Output:
155+ ```
156+ '3.7.3'
136157```
137158
138159### 8.uname()
@@ -145,14 +166,15 @@ import platform
145166details= platform.uname()
146167
147168print (details)
148- '''
149- #Result:uname_result(system='Windows',
169+ ```
170+ Output:
171+ ```
172+ uname_result(system='Windows',
150173node='EKPubgikar',
151174release='10',
152175version='10.0.17763',
153176machine='AMD64',
154177processor='Intel64 Family 6 Model 58 Stepping 9, GenuineIntel')
155- '''
156178```
157179## Other Remaing Function
158180
0 commit comments