Python platform.processor()














































Python platform.processor()



Description: 

    The processor() function is used to retrieve the information, the real name of the system in which the program is being executed. This function returns a string, if the value cannot be determined it returns an empty string. Many platforms do not provide this information or simply return the same value as for machine() function.


Syntax:

platform.processor()

No parameters are required.


Example: Program to display the platform's Processor.


#import module
import platform
#displaying platform's processor
print("Current platform processor is:",platform.processor())


Output:    


Comments