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