how to get username from windows with python code example Example: python get username windows username = os.getlogin()