how to username in python? code example Example: how to username in python? import os u_name = os.getlogin() print(f"[*] Username is : {u_name}")