def get_computer_name():
 name = win32api.GetComputerNameEx(win32con.ComputerNamePhysicalDnsHostname)
 return (name if name else False)

def get_computer_name ( ) : name = win32api . GetComputerNameEx ( win32con . ComputerNamePhysicalDnsHostname ) return ( name if name else False )
gets the computer name :return: the computer name :rtype: str cli example: .