python get name of users code example Example: python get username import os username = os.getlogin()