Skip to content

Commit ddc8406

Browse files
authored
Update platform.md
1 parent e099873 commit ddc8406

1 file changed

Lines changed: 37 additions & 15 deletions

File tree

Module/platform/platform.md

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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
1212
You can start with importing the *platform* module in your program
@@ -29,7 +29,7 @@ import platform
2929
import 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
3535
print(help(platform))
@@ -38,7 +38,8 @@ print(help(platform))
3838
print(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
5152
name=platform.system()
5253

5354
print(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
5962
and the linkage format used for the executable.
@@ -66,7 +69,10 @@ import platform
6669
name=platform.architecture()
6770

6871
print(name)
69-
#Result:('64bit', 'WindowsPE')
72+
```
73+
Output:
74+
```
75+
('64bit', 'WindowsPE')
7076
```
7177

7278
### 3.node()
@@ -81,7 +87,10 @@ import platform
8187
name=platform.node()
8288

8389
print(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
94103
name=platform.processor()
95104
print(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
106118
name=platform.machine()
107119

108120
print(name)
109-
#Result:'AMD64'
121+
```
122+
Output:
123+
```
124+
'AMD64'
110125
```
111126

112127
### 6.version()
@@ -119,7 +134,10 @@ import platform
119134
name=platform.version()
120135

121136
print(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
132150
name=platform.python_version()
133151

134152
print(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
145166
details=platform.uname()
146167

147168
print(details)
148-
'''
149-
#Result:uname_result(system='Windows',
169+
```
170+
Output:
171+
```
172+
uname_result(system='Windows',
150173
node='EKPubgikar',
151174
release='10',
152175
version='10.0.17763',
153176
machine='AMD64',
154177
processor='Intel64 Family 6 Model 58 Stepping 9, GenuineIntel')
155-
'''
156178
```
157179
## Other Remaing Function
158180

0 commit comments

Comments
 (0)