Python platform.node()














































Python platform.node()




Description: 

    The node() function is used to retrieve the computer's network name. An empty string is returned if the value cannot be determined.


Syntax:

platform.node()

No parameters are required.


Example: Program to display the system network's name.


#import module
import platform
#displaying system network name

print("Current system name is:",platform.node())



Output: 


Comments