The following code will work on both Windows and LInux
>>> import getpass >>> import platform >>> print(getpass.getuser()) #username user1 >>> print(platform.node()) #hostname pythoneasy.com
Comment here