how to print device name in python code example Example: how to get device name using pythno import socket socket.gethostname()