how to find the username in windows 10 by python code example Example: python get username windows username = os.getlogin()