how to get the username of the os code example Example: python get username import os username = os.getlogin()