how to get the current user in windows in python code example Example: python get username windows username = os.getlogin()