Python platform.machine()














































Python platform.machine()




Description: 

    The machine() function is used to retrieve the machine information which specify the size of registers available in the core. An empty string is returned if the value cannot be determined.


Syntax:

platform.machine()

No parameters are required.


Example: Program to display the machine type.


#import module

import platform

#displaying machine type

print("Current platform machine type is:",platform.machine())


Output:    


Comments