Python platform.architecture()














































Python platform.architecture()




Description: 

       The architecture() function returns a tuple having two attributes that store information regarding the system's bit architecture and the linkage format. Both the values are returned as strings. This function relies on the system's file command to do the work. 


Attributes returned by architecture():

bits- Number of bits in the platform processor.

linkage- It defines how names can or can not refer to the same entity.


Syntax:

platform.architecture()

No parameters are required.


Example: Program to display the system's architecture.


#import module
import platform
#displaying system's architecture
print("System Information:",platform.architecture())


Output: 



Comments